summaryrefslogtreecommitdiff
path: root/openbsd-compat/glob.c
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 /openbsd-compat/glob.c
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
Diffstat (limited to 'openbsd-compat/glob.c')
-rw-r--r--openbsd-compat/glob.c6
1 files changed, 3 insertions, 3 deletions
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 *