Skip to content
Snippets Groups Projects
Commit 200623a5 authored by rswindell's avatar rswindell
Browse files

Define _GNU_SOURCE when targeting linux. This resolves a lot of warnings

about undeclared functions (vasprintf and pthread_setname_np) when building
sbbs3.
parent 19e2091f
No related branches found
No related tags found
No related merge requests found
# build/Common.gmake
# vi: tabstop=4
#
# Global build system setup file (for GNU Make and gcc)
#
......@@ -102,7 +103,7 @@
# #
# Common Targets Defined: #
# Implicit C and C++ targets #
# "clean" target #
# "clean" target #
# Output directory targets #
# #
#############################################################################
......@@ -322,7 +323,7 @@ endif
# PThread-specific flags
ifeq ($(os),linux) # Linux
CFLAGS += -DPOSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DSPEED_MACROS_ONLY
CFLAGS += -DPOSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DSPEED_MACROS_ONLY -D_GNU_SOURCE
ifndef THREADS_ACTUALLY_WORK
CFLAGS += -D_THREAD_SUID_BROKEN
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment