Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
f6598a69
Commit
f6598a69
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Add getopt detection.
parent
6880f37f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/ac/unistd.h
+14
-1
14 additions, 1 deletion
include/ac/unistd.h
include/portable.h.in
+6
-0
6 additions, 0 deletions
include/portable.h.in
include/portable.h.nt
+8
-2
8 additions, 2 deletions
include/portable.h.nt
with
28 additions
and
3 deletions
include/ac/unistd.h
+
14
−
1
View file @
f6598a69
...
...
@@ -3,11 +3,24 @@
#ifndef _AC_UNISTD_H
#define _AC_UNISTD_H
#if HAVE_
UNISTD
_H
#if HAVE_
SYS_TYPES
_H
# include <sys/types.h>
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
/* getopt() defines may be in separate include file */
#if HAVE_GETOPT_H
# include <getopt.h>
#endif
#ifndef HAVE_GETOPT
/* no getopt, assume we need getopt-compat.h */
# include <getopt-compat.h>
#endif
/* use _POSIX_VERSION for POSIX.1 code */
#endif
/* _AC_UNISTD_H */
This diff is collapsed.
Click to expand it.
include/portable.h.in
+
6
−
0
View file @
f6598a69
...
...
@@ -230,6 +230,9 @@ is provided ``as is'' without express or implied warranty.
/* Define if you have the gethostname function. */
#undef HAVE_GETHOSTNAME
/* Define if you have the getopt function. */
#undef HAVE_GETOPT
/* Define if you have the gettimeofday function. */
#undef HAVE_GETTIMEOFDAY
...
...
@@ -323,6 +326,9 @@ is provided ``as is'' without express or implied warranty.
/* Define if you have the <gdbm.h> header file. */
#undef HAVE_GDBM_H
/* Define if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H
/* Define if you have the <kerberosIV/des.h> header file. */
#undef HAVE_KERBEROSIV_DES_H
...
...
This diff is collapsed.
Click to expand it.
include/portable.h.nt
+
8
−
2
View file @
f6598a69
...
...
@@ -245,6 +245,9 @@ typedef char * caddr_t;
/* Define if you have the gethostname function. */
#define HAVE_GETHOSTNAME 1
/* define if you have the getopt function */
#undef HAVE_GETOPT
/* Define if you have the gettimeofday function. */
#undef HAVE_GETTIMEOFDAY
...
...
@@ -285,7 +288,7 @@ typedef char * caddr_t;
#undef HAVE_SIGSET
/* Define if you have the socket function. */
#
un
def HAVE_SOCKET
#def
ine
HAVE_SOCKET
1
/* Define if you have the strdup function. */
#define HAVE_STRDUP 1
...
...
@@ -338,6 +341,9 @@ typedef char * caddr_t;
/* Define if you have the <gdbm.h> header file. */
#undef HAVE_GDBM_H
/* Define if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H
/* Define if you have the <kerberosIV/des.h> header file. */
#undef HAVE_KERBEROSIV_DES_H
...
...
@@ -405,7 +411,7 @@ typedef char * caddr_t;
#undef HAVE_SYS_PARAM_H
/* Define if you have the <sys/socket.h> header file. */
#def
ine
HAVE_SYS_SOCKET_H
1
#
un
def HAVE_SYS_SOCKET_H
/* Define if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment