mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-25 02:06:07 +02:00
build: Conditionalize bsd_getopt() on macOS
The system library provides a getopt() with BSD semantics.
This commit is contained in:
@@ -75,7 +75,6 @@ EXTRA_libbsd_la_DEPENDENCIES += \
|
||||
# EOL
|
||||
endif
|
||||
libbsd_la_SOURCES = \
|
||||
bsd_getopt.c \
|
||||
closefrom.c \
|
||||
dehumanize_number.c \
|
||||
err.c \
|
||||
@@ -116,6 +115,12 @@ libbsd_la_SOURCES = \
|
||||
wcslcpy.c \
|
||||
# EOL
|
||||
|
||||
if NEED_BSD_GETOPT
|
||||
libbsd_la_SOURCES += \
|
||||
bsd_getopt.c \
|
||||
# EOL
|
||||
endif
|
||||
|
||||
if NEED_ARC4RANDOM
|
||||
if !HAVE_GETENTROPY
|
||||
libbsd_la_SOURCES += \
|
||||
|
||||
Reference in New Issue
Block a user