changeset 7237:7e248dd1e6d5

[project @ 2007-12-03 19:52:47 by jwe]
author jwe
date Mon, 03 Dec 2007 19:52:47 +0000
parents 3ac12f33cf4b
children 22f210ca8cc1
files ChangeLog configure.in src/ChangeLog src/DLD-FUNCTIONS/regexp.cc
diffstat 4 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Dec 02 06:06:12 2007 +0000
+++ b/ChangeLog	Mon Dec 03 19:52:47 2007 +0000
@@ -1,3 +1,8 @@
+2007-12-03  John W. Eaton  <jwe@octave.org>
+
+	* configure.in: If available, include <sys/types.h> in test for
+	sigset_t and sig_atomic_t.
+
 2007-11-30  Moritz Borgmann  <octave@moriborg.de>
 
 	* configure.in: Also check for sunmath.h.
--- a/configure.in	Sun Dec 02 06:06:12 2007 +0000
+++ b/configure.in	Mon Dec 03 19:52:47 2007 +0000
@@ -29,7 +29,7 @@
 EXTERN_CXXFLAGS="$CXXFLAGS"
 
 AC_INIT
-AC_REVISION($Revision: 1.597 $)
+AC_REVISION($Revision: 1.598 $)
 AC_PREREQ(2.57)
 AC_CONFIG_SRCDIR([src/octave.cc])
 AC_CONFIG_HEADER(config.h)
@@ -1195,7 +1195,11 @@
 AC_TYPE_UID_T
 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t])
 AC_CHECK_TYPES([long long int, unsigned long long int])
-AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [#include <signal.h>])
+AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [
+#if defined (HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif
+#include <signal.h>])
 
 ### How big are ints and how are they oriented?  These could probably
 ### be eliminated in favor of run-time checks.
--- a/src/ChangeLog	Sun Dec 02 06:06:12 2007 +0000
+++ b/src/ChangeLog	Mon Dec 03 19:52:47 2007 +0000
@@ -1,3 +1,7 @@
+2007-12-03  David Bateman  <dbateman@free.fr>
+
+	* DLD-FUNCTIONS/regexp.cc: Also include sys/types.h for regexp.
+
 2007-11-30  John W. Eaton  <jwe@octave.org>
 
 	* DLD-FUNCTIONS/sort.cc (operator < (const Complex&, const Complex&),
--- a/src/DLD-FUNCTIONS/regexp.cc	Sun Dec 02 06:06:12 2007 +0000
+++ b/src/DLD-FUNCTIONS/regexp.cc	Mon Dec 03 19:52:47 2007 +0000
@@ -46,6 +46,9 @@
 #if defined (__MINGW32__)
 #define __restrict
 #endif
+#if defined (HAVE_SYS_TYPES_H)
+#include <sys/types.h>
+#endif
 #include <regex.h>
 #endif