summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-05-09 18:39:39 +0200
committerJim Meyering <meyering@redhat.com>2010-05-09 18:39:39 +0200
commitbec2cfcd8f73c81219a0f348718b01766e274621 (patch)
tree0f0ed674f013364300e52a8524c31b07a1ac698d /lib
parent6ef1f1f7086021b90c81636de26373c3fe472e5c (diff)
downloaddiffutils-bec2cfcd8f73c81219a0f348718b01766e274621.tar.gz
build: don't define macros that gnulib provides
* bootstrap.conf (gnulib_modules): Add signal, stdint. * lib/cmpbuf.c (SA_RESTART, SA_INTERRUPT): Remove definitions. (SIZE_MAX, PTRDIFF_MAX): Likewise. Include <stdint.h>. * src/system.h (WEXITSTATUS, WIFEXITED): Remove definitions. (SA_RESTART, SA_INTERRUPT): Likewise.
Diffstat (limited to 'lib')
-rw-r--r--lib/cmpbuf.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/cmpbuf.c b/lib/cmpbuf.c
index 7413210..96ef249 100644
--- a/lib/cmpbuf.c
+++ b/lib/cmpbuf.c
@@ -20,28 +20,14 @@
#include <errno.h>
#include <limits.h>
-
#include <signal.h>
-#ifndef SA_RESTART
-# ifdef SA_INTERRUPT /* e.g. SunOS 4.1.x */
-# define SA_RESTART SA_INTERRUPT
-# else
-# define SA_RESTART 0
-# endif
-#endif
-
#include <unistd.h>
+#include <stdint.h>
#include <inttypes.h>
#include <sys/types.h>
#include "cmpbuf.h"
#include "intprops.h"
-#ifndef PTRDIFF_MAX
-# define PTRDIFF_MAX TYPE_MAXIMUM (ptrdiff_t)
-#endif
-#ifndef SIZE_MAX
-# define SIZE_MAX TYPE_MAXIMUM (size_t)
-#endif
#ifndef SSIZE_MAX
# define SSIZE_MAX TYPE_MAXIMUM (ssize_t)
#endif