emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r105728: Merge from gnulib, porting t


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r105728: Merge from gnulib, porting to Tru64.
Date: Sun, 11 Sep 2011 09:55:41 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 105728 [merge]
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sun 2011-09-11 09:55:41 -0700
message:
  Merge from gnulib, porting to Tru64.
  
  * lib/lstat.c, lib/stat.c, m4/include_next.m4, m4/nocrash.m4:
  * m4/signal_h.m4, m4/time_h.m4, m4/unistd_h.m4:
  Merge from gnulib.  This fixes a compilation error on Tru64 UNIX
  aka OSF/1 5.1 DTK cc.  There is also some mingw stuff here that
  doesn't affect Emacs.
modified:
  ChangeLog
  lib/lstat.c
  lib/stat.c
  m4/include_next.m4
  m4/nocrash.m4
  m4/signal_h.m4
  m4/time_h.m4
  m4/unistd_h.m4
=== modified file 'ChangeLog'
--- a/ChangeLog 2011-09-06 20:47:45 +0000
+++ b/ChangeLog 2011-09-11 16:52:58 +0000
@@ -1,3 +1,12 @@
+2011-09-11  Paul Eggert  <address@hidden>
+
+       Merge from gnulib, porting to Tru64.
+       * lib/lstat.c, lib/stat.c, m4/include_next.m4, m4/nocrash.m4:
+       * m4/signal_h.m4, m4/time_h.m4, m4/unistd_h.m4:
+       Merge from gnulib.  This fixes a compilation error on Tru64 UNIX
+       aka OSF/1 5.1 DTK cc.  There is also some mingw stuff here that
+       doesn't affect Emacs.
+
 2011-09-06  Paul Eggert  <address@hidden>
 
        * configure.in (isnan): Remove now-unnecessary check.

=== modified file 'lib/lstat.c'
--- a/lib/lstat.c       2011-09-03 23:08:32 +0000
+++ b/lib/lstat.c       2011-09-11 16:52:58 +0000
@@ -42,7 +42,10 @@
 }
 
 /* Specification.  */
-# include <sys/stat.h>
+/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
+   eliminates this include because of the preliminary #include <sys/stat.h>
+   above.  */
+# include "sys/stat.h"
 
 # include <string.h>
 # include <errno.h>

=== modified file 'lib/stat.c'
--- a/lib/stat.c        2011-09-03 23:08:32 +0000
+++ b/lib/stat.c        2011-09-11 16:52:58 +0000
@@ -34,7 +34,10 @@
 }
 
 /* Specification.  */
-#include <sys/stat.h>
+/* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
+   eliminates this include because of the preliminary #include <sys/stat.h>
+   above.  */
+#include "sys/stat.h"
 
 #include <errno.h>
 #include <limits.h>

=== modified file 'm4/include_next.m4'
--- a/m4/include_next.m4        2011-07-28 16:35:19 +0000
+++ b/m4/include_next.m4        2011-09-11 16:52:58 +0000
@@ -1,4 +1,4 @@
-# include_next.m4 serial 20
+# include_next.m4 serial 21
 dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -207,17 +207,34 @@
                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
                  *)    gl_absname_cpp="$ac_cpp" ;;
                esac
+changequote(,)
+               case "$host_os" in
+                 mingw*)
+                   dnl For the sake of native Windows compilers (excluding 
gcc),
+                   dnl treat backslash as a directory separator, like /.
+                   dnl Actually, these compilers use a double-backslash as
+                   dnl directory separator, inside the
+                   dnl   # line "filename"
+                   dnl directives.
+                   gl_dirsep_regex='[/\\]'
+                   ;;
+                 *)
+                   gl_dirsep_regex='/'
+                   ;;
+               esac
+changequote([,])
+               
gl_absolute_header_sed='\#'"${gl_dirsep_regex}"']m4_defn([gl_HEADER_NAME])[#{
+                   
s#.*"\(.*'"${gl_dirsep_regex}"']m4_defn([gl_HEADER_NAME])[\)".*#\1#
+                   s#^/[^/]#//&#
+                   p
+                   q
+                 }'
                dnl eval is necessary to expand gl_absname_cpp.
                dnl Ultrix and Pyramid sh refuse to redirect output of eval,
                dnl so use subshell.
                AS_VAR_SET(gl_next_header,
                  ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 
2>&AS_MESSAGE_LOG_FD |
-                  sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{
-                    s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1#
-                    s#^/[^/]#//&#
-                    p
-                    q
-                  }'`'"'])
+                      sed -n "$gl_absolute_header_sed"`'"'])
           m4_if([$2], [check],
             [else
                AS_VAR_SET(gl_next_header, ['<'gl_HEADER_NAME'>'])

=== modified file 'm4/nocrash.m4'
--- a/m4/nocrash.m4     2011-07-24 22:15:47 +0000
+++ b/m4/nocrash.m4     2011-09-11 16:52:58 +0000
@@ -1,4 +1,4 @@
-# nocrash.m4 serial 2
+# nocrash.m4 serial 3
 dnl Copyright (C) 2005, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -79,6 +79,34 @@
     }
   }
 }
+#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+/* Avoid a crash on native Windows.  */
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#include <winerror.h>
+static LONG WINAPI
+exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
+{
+  switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
+    {
+    case EXCEPTION_ACCESS_VIOLATION:
+    case EXCEPTION_IN_PAGE_ERROR:
+    case EXCEPTION_STACK_OVERFLOW:
+    case EXCEPTION_GUARD_PAGE:
+    case EXCEPTION_PRIV_INSTRUCTION:
+    case EXCEPTION_ILLEGAL_INSTRUCTION:
+    case EXCEPTION_DATATYPE_MISALIGNMENT:
+    case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
+    case EXCEPTION_NONCONTINUABLE_EXCEPTION:
+      exit (1);
+    }
+  return EXCEPTION_CONTINUE_SEARCH;
+}
+static void
+nocrash_init (void)
+{
+  SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) 
exception_filter);
+}
 #else
 /* Avoid a crash on POSIX systems.  */
 #include <signal.h>

=== modified file 'm4/signal_h.m4'
--- a/m4/signal_h.m4    2011-07-08 20:20:19 +0000
+++ b/m4/signal_h.m4    2011-09-11 16:52:58 +0000
@@ -1,4 +1,4 @@
-# signal_h.m4 serial 16
+# signal_h.m4 serial 17
 dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -17,6 +17,9 @@
 #include <signal.h>
     ]])
 
+  dnl Ensure the type pid_t gets defined.
+  AC_REQUIRE([AC_TYPE_PID_T])
+
   AC_REQUIRE([AC_TYPE_UID_T])
 
   dnl Persuade glibc <signal.h> to define sighandler_t.

=== modified file 'm4/time_h.m4'
--- a/m4/time_h.m4      2011-01-22 00:12:10 +0000
+++ b/m4/time_h.m4      2011-09-11 16:52:58 +0000
@@ -2,7 +2,7 @@
 
 # Copyright (C) 2000-2001, 2003-2007, 2009-2011 Free Software Foundation, Inc.
 
-# serial 4
+# serial 5
 
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -23,6 +23,9 @@
   AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
   gl_NEXT_HEADERS([time.h])
   AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
+
+  dnl Ensure the type pid_t gets defined.
+  AC_REQUIRE([AC_TYPE_PID_T])
 ])
 
 dnl Define HAVE_STRUCT_TIMESPEC if `struct timespec' is declared

=== modified file 'm4/unistd_h.m4'
--- a/m4/unistd_h.m4    2011-05-18 00:39:40 +0000
+++ b/m4/unistd_h.m4    2011-09-11 16:52:58 +0000
@@ -1,4 +1,4 @@
-# unistd_h.m4 serial 56
+# unistd_h.m4 serial 57
 dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -21,6 +21,9 @@
   fi
   AC_SUBST([HAVE_UNISTD_H])
 
+  dnl Ensure the type pid_t gets defined.
+  AC_REQUIRE([AC_TYPE_PID_T])
+
   dnl Check for declarations of anything we want to poison if the
   dnl corresponding gnulib module is not in use.
   gl_WARN_ON_USE_PREPARE([[#include <unistd.h>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]