summaryrefslogtreecommitdiff
path: root/includes.h
diff options
context:
space:
mode:
authordjm <djm>2001-03-14 00:39:45 +0000
committerdjm <djm>2001-03-14 00:39:45 +0000
commit123251ac08dd883341755683c47e0f6f7a5ccd82 (patch)
tree77fd5535605b183cbd591adcad7b7c7b347cee43 /includes.h
parentd882f4f8c7e29dd8ecfe5820b3715684a49c9dcb (diff)
downloadopenssh-123251ac08dd883341755683c47e0f6f7a5ccd82.tar.gz
- (djm) Add replacement glob() from OpenBSD libc if the system glob is
missing or lacks the GLOB_ALTDIRFUNC extension - (djm) Remove -I$(srcdir)/openbsd-compat from CFLAGS, refer to headers relatively. Avoids conflict between glob.h and /usr/include/glob.h
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/includes.h b/includes.h
index a4ebbd3d..3f834ba8 100644
--- a/includes.h
+++ b/includes.h
@@ -21,7 +21,7 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
#include "config.h"
-#include "bsd-nextstep.h"
+#include "openbsd-compat/bsd-nextstep.h"
#include <sys/types.h>
#include <sys/socket.h>
@@ -54,6 +54,9 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
#ifdef HAVE_BSTRING_H
# include <bstring.h>
#endif
+#if defined(HAVE_GLOB_H) && defined(GLOB_HAS_ALTDIRFUNC)
+# include <glob.h>
+#endif
#ifdef HAVE_NETGROUP_H
# include <netgroup.h>
#endif
@@ -95,8 +98,8 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
# include <vis.h>
#endif
#include "version.h"
-#include "openbsd-compat.h"
-#include "bsd-cygwin_util.h"
+#include "openbsd-compat/openbsd-compat.h"
+#include "openbsd-compat/bsd-cygwin_util.h"
#include "entropy.h"
#endif /* INCLUDES_H */