[uim-commit] r1146 - branches/r5rs/sigscheme
yamaken at freedesktop.org
yamaken at freedesktop.org
Sun Aug 7 08:35:21 EST 2005
Author: yamaken
Date: 2005-08-06 15:35:19 -0700 (Sat, 06 Aug 2005)
New Revision: 1146
Modified:
branches/r5rs/sigscheme/datas.c
Log:
* sigscheme/datas.c
- Comment out #include <malloc.h> since it is obsolete
- Add simple availability check for posix_memalign(3) and comment
about it. Thanks for the information in [Anthy-dev 2203] Jun Inoue.
Modified: branches/r5rs/sigscheme/datas.c
===================================================================
--- branches/r5rs/sigscheme/datas.c 2005-08-06 22:30:47 UTC (rev 1145)
+++ branches/r5rs/sigscheme/datas.c 2005-08-06 22:35:19 UTC (rev 1146)
@@ -60,10 +60,30 @@
=======================================*/
#include <string.h>
#include <stdlib.h>
-#include <malloc.h>
#include <setjmp.h>
/*=======================================
+ Portability Coordination
+=======================================*/
+#if 0
+/* malloc.h is obsoleted by stdlib.h. At least FreeBSD generates an error. */
+#include <malloc.h>
+#endif
+
+#ifndef posix_memalign
+/*
+ * Cited from manpage of posix_memalign(3) of glibc:
+ *
+ * CONFORMING TO
+ * The function valloc() appeared in 3.0 BSD. It is documented as being
+ * obsolete in BSD 4.3, and as legacy in SUSv2. It no longer occurs in
+ * SUSv3. The function memalign() appears in SunOS 4.1.3 but not in BSD
+ * 4.4. The function posix_memalign() comes from POSIX 1003.1d.
+ */
+#error "posix_memalign(3) is not available in this system"
+#endif
+
+/*=======================================
Local Include
=======================================*/
#include "sigscheme.h"
More information about the uim-commit
mailing list