lobase

Linux port of OpenBSDs userland.
Log | Files | Refs | README

commit b0654e4dcd86c78505bacc8b8f4eb70fa603c958
parent 2b8de114576da4f0aba3350694ae1ce5f945f2bb
Author: Duncaen <mail@duncano.de>
Date:   Thu, 25 May 2017 19:58:46 +0200

include: avoid getopt conflicts

Diffstat:
include/getopt.h | 3+++
include/unistd.h | 3+++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/getopt.h b/include/getopt.h @@ -70,6 +70,9 @@ int getopt_long_only(int, char * const *, const char *, const struct option *, int *); #ifndef _GETOPT_DEFINED_ #define _GETOPT_DEFINED_ +#define getopt openbsd_getopt +#define opterr openbsd_opterr +#define optind openbsd_optind int getopt(int, char * const *, const char *); extern char *optarg; /* getopt(3) external variables */ diff --git a/include/unistd.h b/include/unistd.h @@ -56,6 +56,9 @@ int pledge(const char *, const char *[]); #ifndef _GETOPT_DEFINED_ #define _GETOPT_DEFINED_ +#define getopt openbsd_getopt +#define opterr openbsd_opterr +#define optind openbsd_optind int getopt(int, char * const *, const char *); extern char *optarg; /* getopt(3) external variables */ extern int opterr, optind, optopt, optreset;