dlls/shell32/shfldr_unixfs.c compilation fix

Gerald Pfeifer gerald at pfeifer.com
Tue Apr 26 11:08:07 CDT 2005


The following change to dlls/shell32/shfldr_unixfs.c

  revision 1.6
  date: 2005/04/25 10:56:29;  author: julliard;  state: Exp;  lines: +228 -77
  Michael Jung <mjung at iss.tu-darmstadt.de>
  Support for regular files (as opposed to directories).

breaks the build on some non-Linux platforms:

  shfldr_unixfs.c: In function `UNIXFS_build_subfolder_pidls':
  shfldr_unixfs.c:338: error: `NAME_MAX' undeclared (first use in this function)
  shfldr_unixfs.c:338: error: (Each undeclared identifier is reported only once
  shfldr_unixfs.c:338: error: for each function it appears in.)

Fixed thusly.

Gerald

ChangeLog:
#include <limits.h> to get a definition of NAME_MAX.
Index: shfldr_unixfs.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shfldr_unixfs.c,v
retrieving revision 1.6
diff -u -3 -p -r1.6 shfldr_unixfs.c
--- shfldr_unixfs.c	25 Apr 2005 10:56:29 -0000	1.6
+++ shfldr_unixfs.c	26 Apr 2005 11:40:07 -0000
@@ -20,6 +20,7 @@
 
 #include <stdio.h>
 #include <stdarg.h>
+#include <limits.h>
 #include <dirent.h>
 #include <sys/stat.h>
 #include <pwd.h>



More information about the wine-patches mailing list