[uim-commit] r2966 - branches/r5rs/sigscheme/src

yamaken at freedesktop.org yamaken at freedesktop.org
Sun Jan 22 05:15:30 PST 2006


Author: yamaken
Date: 2006-01-22 05:15:23 -0800 (Sun, 22 Jan 2006)
New Revision: 2966

Modified:
   branches/r5rs/sigscheme/src/alloc.c
Log:
* sigscheme/src/alloc.c
  - (_POSIX_C_SOURCE): Newly defined for posix_memalign(3)


Modified: branches/r5rs/sigscheme/src/alloc.c
===================================================================
--- branches/r5rs/sigscheme/src/alloc.c	2006-01-22 12:29:51 UTC (rev 2965)
+++ branches/r5rs/sigscheme/src/alloc.c	2006-01-22 13:15:23 UTC (rev 2966)
@@ -34,6 +34,12 @@
 
 #include "config.h"
 
+#if HAVE_POSIX_MEMALIGN
+/* For posix_memalign(3). although this value is overridden by _GNU_SOURCE on
+ * glibc, keep this for other environments. */
+#define _POSIX_C_SOURCE 200112L
+#endif
+
 /*=======================================
   System Include
 =======================================*/
@@ -70,7 +76,6 @@
 /*=======================================
   Function Implementations
 =======================================*/
-/* FIXME: ensure safety in a portable way */
 void *
 scm_malloc_aligned(size_t size)
 {



More information about the uim-commit mailing list