PATCH: fix dlls/kernel/sync.c compilation

Gerald Pfeifer gerald at pfeifer.com
Tue Apr 19 03:39:19 CDT 2005


The following change to dlls/kernel/sync.c

  revision 1.76
  date: 2005/04/18 14:57:04;  author: julliard;  state: Exp;  lines: +100 -80
  Eric Pouech <pouech-eric at wanadoo.fr>
  - moved named pipe creation to ntdll
  - server now handles the named pipe flags as the NTDLL values (not the
    KERNEL32 ones)
  - named pipes in server now use the async IO mechanism for
    connect/wait ops

causes the following compilation error on some systems:

  sync.c: In function `CreateNamedPipeW':
  sync.c:1101: error: `ULONG_MAX' undeclared (first use in this function)
  sync.c:1101: error: (Each undeclared identifier is reported only once
  sync.c:1101: error: for each function it appears in.)

Fixed thusly.

Gerald

ChangeLog:
Include <limits.h> to ensure that ULONG_MAX has been defined.
Index: sync.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/sync.c,v
retrieving revision 1.76
diff -u -3 -p -r1.76 sync.c
--- sync.c	18 Apr 2005 14:57:04 -0000	1.76
+++ sync.c	19 Apr 2005 08:35:55 -0000
@@ -38,6 +38,7 @@
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
+#include <limits.h>
 #include <stdarg.h>
 #include <stdio.h>
 



More information about the wine-patches mailing list