aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-07-10 22:57:03 -0700
committerPaul Eggert2012-07-10 22:57:03 -0700
commitb747d3f7535fe324b0ea21d53c4f84970335022a (patch)
treed5514fb34a041266819b8e1f65b828b5a12d95a1
parent5ebbef1dc0d12fa5402c97e8aa8c0c85553b87ee (diff)
downloademacs-b747d3f7535fe324b0ea21d53c4f84970335022a.tar.gz
emacs-b747d3f7535fe324b0ea21d53c4f84970335022a.zip
Assume perror.
-rw-r--r--admin/CPP-DEFINES1
-rw-r--r--admin/ChangeLog4
-rw-r--r--src/ChangeLog5
-rw-r--r--src/s/hpux10-20.h3
-rw-r--r--src/sysdep.c12
5 files changed, 7 insertions, 18 deletions
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES
index 49095d7e3fc..f5522a77ccb 100644
--- a/admin/CPP-DEFINES
+++ b/admin/CPP-DEFINES
@@ -134,7 +134,6 @@ HAVE_MENUS
134HAVE_MKDIR 134HAVE_MKDIR
135HAVE_MKTIME 135HAVE_MKTIME
136HAVE_MOUSE 136HAVE_MOUSE
137HAVE_PERROR
138HAVE_PSTAT_GETDYNAMIC 137HAVE_PSTAT_GETDYNAMIC
139HAVE_PWD_H 138HAVE_PWD_H
140HAVE_RANDOM 139HAVE_RANDOM
diff --git a/admin/ChangeLog b/admin/ChangeLog
index 60e22eb733a..fd03be5bd8c 100644
--- a/admin/ChangeLog
+++ b/admin/ChangeLog
@@ -1,7 +1,7 @@
12012-07-11 Paul Eggert <eggert@cs.ucla.edu> 12012-07-11 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Assume strerror. 3 Assume perror, strerror.
4 * CPP-DEFINES (HAVE_STRERROR, strerror): Remove. 4 * CPP-DEFINES (HAVE_PERROR, HAVE_STRERROR, strerror): Remove.
5 5
62012-07-10 Dmitry Antipov <dmantipov@yandex.ru> 62012-07-10 Dmitry Antipov <dmantipov@yandex.ru>
7 7
diff --git a/src/ChangeLog b/src/ChangeLog
index d119915643d..749bc12328c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12012-07-11 Paul Eggert <eggert@cs.ucla.edu> 12012-07-11 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Assume perror.
4 * s/hpux10-20.h (HAVE_PERROR): Remove.
5 * sysdep.c (perror) [HPUX && !HAVE_PERROR]:
6 Remove dummy definition, as this problem was obsolete long ago.
7
3 Assume strerror. 8 Assume strerror.
4 * sysdep.c (strerror) [!HAVE_STRERROR && !WINDOWSNT]: Remove. 9 * sysdep.c (strerror) [!HAVE_STRERROR && !WINDOWSNT]: Remove.
5 10
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h
index 0e47ccee86f..7d8222761b3 100644
--- a/src/s/hpux10-20.h
+++ b/src/s/hpux10-20.h
@@ -43,9 +43,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
43 43
44/* Special hacks needed to make Emacs run on this system. */ 44/* Special hacks needed to make Emacs run on this system. */
45 45
46/* Some additional system facilities exist. */
47#define HAVE_PERROR /* Delete this line for version 6. */
48
49/* This is how to get the device name of the tty end of a pty. */ 46/* This is how to get the device name of the tty end of a pty. */
50#define PTY_TTY_NAME_SPRINTF \ 47#define PTY_TTY_NAME_SPRINTF \
51 sprintf (pty_name, "/dev/pty/tty%c%x", c, i); 48 sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
diff --git a/src/sysdep.c b/src/sysdep.c
index 8a27e24c792..4bbe939dd74 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2023,18 +2023,6 @@ rename (const char *from, const char *to)
2023 2023
2024#endif 2024#endif
2025 2025
2026
2027#if defined (HPUX) && !defined (HAVE_PERROR)
2028
2029/* HPUX curses library references perror, but as far as we know
2030 it won't be called. Anyway this definition will do for now. */
2031
2032void
2033perror (void)
2034{
2035}
2036#endif /* HPUX and not HAVE_PERROR */
2037
2038/* 2026/*
2039 * This function will go away as soon as all the stubs fixed. (fnf) 2027 * This function will go away as soon as all the stubs fixed. (fnf)
2040 */ 2028 */