sysutils/pmt: Rework patch handle POSIX issues on both fbsd and dfly

A few years ago, _XSI_VISIBLE was defined to re-expose gettimeofday on
FreeBSD.  Recent changes to DragonFly's signal.h headers resulted in the
failure of the building of pmt.  By defining _XOPEN_SOURCE=500 instead,
pmt on both platforms.
This commit is contained in:
John Marino 2015-02-02 19:05:11 +00:00
parent e7309d6615
commit 5bd2bd281e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378318

View file

@ -1,10 +1,10 @@
--- ./config.mak.orig 2010-01-06 08:21:36.000000000 -0500
+++ ./config.mak 2010-01-06 08:21:54.000000000 -0500
--- config.mak.orig 2005-06-14 19:50:57 UTC
+++ config.mak
@@ -1,6 +1,6 @@
VERSION = 0.2
MAKEFLAGS += --print-directory
-PMT_CFLAGS = -std=c99 -Wall -Werror -pedantic \
+PMT_CFLAGS = -std=c99 -Wall -Werror -pedantic -D__XSI_VISIBLE \
+PMT_CFLAGS = -std=c99 -Wall -Werror -pedantic -D_XOPEN_SOURCE=500 \
-D_POSIX_SOURCE -DVERSION='$(VERSION)' \
-I. -Ilibowfat