[pypy-svn] r47340 - pypy/dist/pypy/translator/c/src

arigo at codespeak.net arigo at codespeak.net
Tue Oct 9 14:13:36 CEST 2007


Author: arigo
Date: Tue Oct  9 14:13:34 2007
New Revision: 47340

Modified:
   pypy/dist/pypy/translator/c/src/g_prerequisite.h
Log:
this must be defined before including other headers
in order to get a few extra functions like mremap()


Modified: pypy/dist/pypy/translator/c/src/g_prerequisite.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/g_prerequisite.h	(original)
+++ pypy/dist/pypy/translator/c/src/g_prerequisite.h	Tue Oct  9 14:13:34 2007
@@ -2,6 +2,9 @@
 /**************************************************************/
 /***  this is included before any code produced by genc.py  ***/
 
+#define _GNU_SOURCE  /* this must be defined before including other headers
+                        in order to get a few extra functions like mremap() */
+
 /* XXX for now we always include Python.h even to produce stand-alone
  * executables (which are *not* linked against CPython then),
  * to get the convenient macro definitions



More information about the Pypy-commit mailing list