summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-07-24 14:55:47 +1000
committerDamien Miller <djm@mindrot.org>2006-07-24 14:55:47 +1000
commit8b373baf13f9bec712ad01a0242241bc6529f5f4 (patch)
tree1cfb8bdabfc7783ee3cfd9a1e43a6fe75fd18148
parentb8fe89c4d97ea9a5d7efb2c60108b8a7644f6a49 (diff)
- (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
-rw-r--r--ChangeLog6
-rw-r--r--openbsd-compat/glob.c6
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index d2cd9b597..be85b0c52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -112,6 +112,10 @@
112 make the portable tree compile again - sprinkle unistd.h and string.h 112 make the portable tree compile again - sprinkle unistd.h and string.h
113 back in. Don't redefine __unused, as it turned out to be used in 113 back in. Don't redefine __unused, as it turned out to be used in
114 headers on Linux, and replace its use in auth-pam.c with ARGSUSED 114 headers on Linux, and replace its use in auth-pam.c with ARGSUSED
115 - (djm) [openbsd-compat/glob.c]
116 Move get_arg_max() into the ifdef HAVE_GLOB block so that it compiles
117 on OpenBSD (or other platforms with a decent glob implementation) with
118 -Werror
115 119
11620060713 12020060713
117 - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h 121 - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h
@@ -5030,4 +5034,4 @@
5030 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 5034 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
5031 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 5035 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
5032 5036
5033$Id: ChangeLog,v 1.4430 2006/07/24 04:51:00 djm Exp $ 5037$Id: ChangeLog,v 1.4431 2006/07/24 04:55:47 djm Exp $
diff --git a/openbsd-compat/glob.c b/openbsd-compat/glob.c
index b4873932a..907235353 100644
--- a/openbsd-compat/glob.c
+++ b/openbsd-compat/glob.c
@@ -44,6 +44,9 @@
44#include <string.h> 44#include <string.h>
45#include <unistd.h> 45#include <unistd.h>
46 46
47#if !defined(HAVE_GLOB) || !defined(GLOB_HAS_ALTDIRFUNC) || \
48 !defined(GLOB_HAS_GL_MATCHC)
49
47static long 50static long
48get_arg_max(void) 51get_arg_max(void)
49{ 52{
@@ -56,9 +59,6 @@ get_arg_max(void)
56#endif 59#endif
57} 60}
58 61
59#if !defined(HAVE_GLOB) || !defined(GLOB_HAS_ALTDIRFUNC) || \
60 !defined(GLOB_HAS_GL_MATCHC)
61
62/* 62/*
63 * glob(3) -- a superset of the one defined in POSIX 1003.2. 63 * glob(3) -- a superset of the one defined in POSIX 1003.2.
64 * 64 *