summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2003-09-11 20:36:17 +0000
committerAndreas Gruenbacher <agruen@suse.de>2009-03-19 01:43:39 +0100
commitcd32be5e1496fca0ca01d097848bfd25f28fd029 (patch)
tree22268bcd5f70ff901417019c20f6791fa9dbca45
parent84f8e25745fc9c00200ed09b22e528117e366eb3 (diff)
downloadpatch-cd32be5e1496fca0ca01d097848bfd25f28fd029.tar.gz
Include <string.h>, <stdlib.h> unconditionally.
-rw-r--r--common.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/common.h b/common.h
index c7fc5c2..da9c149 100644
--- a/common.h
+++ b/common.h
@@ -1,6 +1,6 @@
/* common definitions for `patch' */
-/* $Id: common.h,v 1.34 2003/05/19 06:57:36 eggert Exp $ */
+/* $Id: common.h,v 1.35 2003/09/11 18:36:17 eggert Exp $ */
/* Copyright (C) 1986, 1988 Larry Wall
@@ -200,23 +200,8 @@ void fatal_exit (int) __attribute__ ((noreturn));
extern int errno;
#endif
-#if STDC_HEADERS || HAVE_STRING_H
-# include <string.h>
-#else
-# if !HAVE_MEMCHR
-# define memcmp(s1, s2, n) bcmp (s1, s2, n)
-# define memcpy(d, s, n) bcopy (s, d, n)
-void *memchr ();
-# endif
-#endif
-
-#if STDC_HEADERS
-# include <stdlib.h>
-#else
-char *getenv ();
-void *malloc ();
-void *realloc ();
-#endif
+#include <string.h>
+#include <stdlib.h>
#if HAVE_UNISTD_H
# include <unistd.h>