Skip to content

Commit

Permalink
tests/Makefile.in: set _POSIX_C_SOURCE=200112L
Browse files Browse the repository at this point in the history
This change replaces the pre-processor symbol _GNU_SOURCE set in
the Makefile with _POSIX_C_SOURCE to provide support for kill(2)
and getaddrinfo(3).

Change-Id: Ib4c9ade28b663d86a182ee34cbf262526240cd7d
  • Loading branch information
obgm committed Jul 27, 2023
1 parent f04c89c commit 0427dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SOURCES:= dtls-server.c ccm-test.c \
OBJECTS:= $(patsubst %.c, %.o, $(SOURCES))
PROGRAMS:= dtls-server dtls-client ccm-test
HEADERS:=
CFLAGS:=-Wall -std=c99 @CFLAGS@ @WARNING_CFLAGS@ $(EXTRA_CFLAGS) -D_GNU_SOURCE
CFLAGS:=-Wall -std=c99 @CFLAGS@ @WARNING_CFLAGS@ $(EXTRA_CFLAGS) -D_POSIX_C_SOURCE=200112L
CPPFLAGS:=-I$(top_srcdir) @CPPFLAGS@
LDFLAGS:=-L$(top_builddir) @LDFLAGS@
LDLIBS:=$(top_srcdir)/libtinydtls.a @LIBS@
Expand Down

0 comments on commit 0427dd4

Please sign in to comment.