Check-in [c061ce704b]
Overview
Comment:Updated win32 support slightly.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c061ce704b54d63ec81a1b849dfacacb0dd71d8e
User & Date: rkeene on 2004-12-20 00:48:30
Other Links: manifest | tags
Context
2004-12-20
00:49
Fixed typo where getpwuid was checked for twice. check-in: cb1b3fadc8 user: rkeene tags: trunk
00:48
Updated win32 support slightly. check-in: c061ce704b user: rkeene tags: trunk
00:44
Cygwin was made its own port. Various fixes to strtoll replacement. libconfig 0.1.14 check-in: 7d6fa8e6b1 user: rkeene tags: trunk, 0.1.14
Changes

Modified win32.h from [f0ab9e6ba7] to [a790cc0df9].

    10     10   #  if defined(HAVE_WINSOCK2_H) && defined(HAVE_LIBWSOCK32)
    11     11        /* We have to override the detected configuration
    12     12           because it can't detect the network libraries. */
    13     13   #    define HAVE_GETHOSTBYNAME 1
    14     14   #    define HAVE_INET_ADDR 1
    15     15   #    define HAVE_SOCKET 1
    16     16   #  endif
           17  +#  define sleep(x) Sleep((x) * 1000)
    17     18   #else
    18     19      /* MSVC++ configuration follows */
    19     20   #  undef HAVE_UNISTD_H
    20     21   #  define HAVE_STDLIB_H 1
    21     22   #  define HAVE_WINDOWS_H 1
    22     23   #  define HAVE_STDARG_H 1
           24  +#  define HAVE_WINSVC_H 1
           25  +#  define HAVE_WINSOCK2_H 1
           26  +#  define HAVE_WINDOWSX_H 1
    23     27   #endif /* __MINGW32__ */
    24     28   
    25     29   #ifdef HAVE_WINDOWS_H
    26     30   #  include <windows.h>
    27     31   #endif
           32  +#ifdef HAVE_WINDOWSX_H
           33  +#  include <windowsx.h>
           34  +#endif
    28     35   #ifdef HAVE_WINSOCK2_H
    29     36   #  include <winsock2.h>
    30     37   #endif
           38  +#ifdef HAVE_WINSVC_H
           39  +#  include <winsvc.h>
           40  +#endif
    31     41   
    32     42   #define _USE_WIN32_ 1
    33     43   
    34     44   #endif /* _LOCAL_WIN32_H */