diff options
author | Christopher Faylor <me@cgf.cx> | 2008-04-07 20:15:45 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-04-07 20:15:45 +0400 |
commit | ade47a3430eb7ef8b3cdb3d54d47a0c4732ac10d (patch) | |
tree | 410bd10eaa7bfc57411d210e2c14414ab1ff8753 /winsup/cygwin/autoload.cc | |
parent | 6c74e7d7fcd17febed2b3f41e0cf0840191d63ef (diff) |
Add miscfuncs.h to files as needed throughout.
* mount.cc: New file.
* path.cc: Move mount-specific stuff into mount.cc. Move common stuff into
miscfuncs.cc. Remove unneeded includes.
* miscfuncs.cc: Move some common path functions here.
* miscfuncs.h: New file.
* winsup.h: Move miscelleneous functions to miscfuncs.h.
* dcrt0.cc: Remove unneeded includes.
* Makefile.in (DLL_OFILES): Add mount.o.
* include/cygwin/config.h: Fix a minor typo.
Diffstat (limited to 'winsup/cygwin/autoload.cc')
-rw-r--r-- | winsup/cygwin/autoload.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 621ecbd6c..844d7b853 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -9,9 +9,12 @@ Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #include "winsup.h" +#include "miscfuncs.h" #define USE_SYS_TYPES_FD_SET #include <winsock2.h> +bool NO_COPY wsock_started; + /* Macro for defining "auto-load" functions. * Note that this is self-modifying code *gasp*. * The first invocation of a routine will trigger the loading of @@ -243,7 +246,6 @@ std_dll_init () } /* Initialization function for winsock stuff. */ -bool NO_COPY wsock_started = 0; WSADATA NO_COPY wsadata; __attribute__ ((used, noinline, regparm(1))) static long long wsock_init () |