- Fix defining of strndup(3) prototype due to improperly defined
_POSIX_C_SOURCE and _XOPEN_SOURCE. strndup(3) came in POSIX.1-2008.
This commit is contained in:
parent
e7cb3e0761
commit
8747fba8d2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=400334
2 changed files with 21 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= ccache
|
||||
PORTVERSION= 3.2.4
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.samba.org/ftp/ccache/ \
|
||||
LOCAL/bdrewery
|
||||
|
|
20
devel/ccache/files/patch-configure
Normal file
20
devel/ccache/files/patch-configure
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- configure.orig 2015-10-08 12:14:23.000000000 -0700
|
||||
+++ configure 2015-10-27 10:49:04.338642000 -0700
|
||||
@@ -3672,7 +3672,7 @@
|
||||
;;
|
||||
*)
|
||||
|
||||
-$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
|
||||
+$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
|
||||
|
||||
;;
|
||||
esac
|
||||
@@ -3694,7 +3694,7 @@
|
||||
esac
|
||||
|
||||
|
||||
-$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
|
||||
+$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
|
||||
|
||||
|
||||
fi
|
Loading…
Reference in a new issue