Author: Armin Rigo <[email protected]>
Branch:
Changeset: r85983:3a63f18f76cb
Date: 2016-08-02 11:24 +0200
http://bitbucket.org/pypy/pypy/changeset/3a63f18f76cb/
Log: Issue #2348: FreeBSD needs this value of _POSIX_C_SOURCE to expose
functions like unlinkat(), used on py3k.
diff --git a/rpython/translator/c/src/precommondefs.h
b/rpython/translator/c/src/precommondefs.h
--- a/rpython/translator/c/src/precommondefs.h
+++ b/rpython/translator/c/src/precommondefs.h
@@ -18,9 +18,9 @@
#define _LARGEFILE_SOURCE 1
/* Define on NetBSD to activate all library features */
#define _NETBSD_SOURCE 1
-/* Define to activate features from IEEE Stds 1003.1-2001 */
+/* Define to activate features from IEEE Stds 1003.1-2008 */
#ifndef _POSIX_C_SOURCE
-# define _POSIX_C_SOURCE 200112L
+# define _POSIX_C_SOURCE 200809L
#endif
/* Define on FreeBSD to activate all library features */
#define __BSD_VISIBLE 1
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit