include: Check for getopt_long_only instead of getopt_long

André Hentschel nerv at dawncrow.de
Sun Jun 16 10:07:55 CDT 2013


Reported by clrscr on IRC

---
 include/wine/port.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/wine/port.h b/include/wine/port.h
index 76a0b3e..09dbf61 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -229,7 +229,7 @@ static inline float __port_nan(void)
 int fstatvfs( int fd, struct statvfs *buf );
 #endif
 
-#ifndef HAVE_GETOPT_LONG
+#ifndef HAVE_GETOPT_LONG_ONLY
 extern char *optarg;
 extern int optind;
 extern int opterr;
@@ -252,7 +252,7 @@ extern int getopt_long (int ___argc, char *const *___argv,
 extern int getopt_long_only (int ___argc, char *const *___argv,
                              const char *__shortopts,
                              const struct option *__longopts, int *__longind);
-#endif  /* HAVE_GETOPT_LONG */
+#endif  /* HAVE_GETOPT_LONG_ONLY */
 
 #ifndef HAVE_FFS
 int ffs( int x );
-- 
1.8.1.2



More information about the wine-patches mailing list