]> andersk Git - openssh.git/commitdiff
- (djm) [openbsd-compat/glob.c]
authordjm <djm>
Mon, 24 Jul 2006 04:55:47 +0000 (04:55 +0000)
committerdjm <djm>
Mon, 24 Jul 2006 04:55:47 +0000 (04:55 +0000)
   Move get_arg_max() into the ifdef HAVE_GLOB block so that it compiles
   on OpenBSD (or other platforms with a decent glob implementation) with
   -Werror

ChangeLog
openbsd-compat/glob.c

index 4766d9ef673d6655ef8ea2171e221edf84c4bfbc..6b618471d38f5ef5aaa515f777da5ac633023737 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
    make the portable tree compile again - sprinkle unistd.h and string.h 
    back in. Don't redefine __unused, as it turned out to be used in
    headers on Linux, and replace its use in auth-pam.c with ARGSUSED
+ - (djm) [openbsd-compat/glob.c]
+   Move get_arg_max() into the ifdef HAVE_GLOB block so that it compiles
+   on OpenBSD (or other platforms with a decent glob implementation) with
+   -Werror
 
 20060713
  - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h
index b4873932a237556bcfe9cb4080c655cd57c05453..907235353207242c11cb6b40a7c518eeccb5923a 100644 (file)
@@ -44,6 +44,9 @@
 #include <string.h>
 #include <unistd.h>
 
+#if !defined(HAVE_GLOB) || !defined(GLOB_HAS_ALTDIRFUNC) || \
+    !defined(GLOB_HAS_GL_MATCHC)
+
 static long
 get_arg_max(void)
 {
@@ -56,9 +59,6 @@ get_arg_max(void)
 #endif
 }
 
-#if !defined(HAVE_GLOB) || !defined(GLOB_HAS_ALTDIRFUNC) || \
-    !defined(GLOB_HAS_GL_MATCHC)
-
 /*
  * glob(3) -- a superset of the one defined in POSIX 1003.2.
  *
This page took 0.047002 seconds and 5 git commands to generate.