summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-11-04 17:57:34 +0000
committerJim Meyering <jim@meyering.net>1996-11-04 17:57:34 +0000
commit974c1be5ddd0807bca0dcfd4bdf023213d99a2ba (patch)
tree0ee5342b235401cff777865159e76b873ed6b650
parent3694c647bbc717913a28b5ad214a8540e7e725cf (diff)
downloadgnulib-974c1be5ddd0807bca0dcfd4bdf023213d99a2ba.tar.gz
libitize
-rw-r--r--lib/makepath.c2
-rw-r--r--lib/makepath.h6
-rw-r--r--lib/memcmp.c9
-rw-r--r--lib/mkdir.c12
4 files changed, 18 insertions, 11 deletions
diff --git a/lib/makepath.c b/lib/makepath.c
index 87d7eb1369..028e172af1 100644
--- a/lib/makepath.c
+++ b/lib/makepath.c
@@ -44,7 +44,7 @@ char *alloca ();
#if STAT_MACROS_BROKEN
# undef S_ISDIR
-#endif /* STAT_MACROS_BROKEN. */
+#endif
#if !defined(S_ISDIR) && defined(S_IFDIR)
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
diff --git a/lib/makepath.h b/lib/makepath.h
index 1d8097d391..e62f54433a 100644
--- a/lib/makepath.h
+++ b/lib/makepath.h
@@ -1,8 +1,8 @@
-#if __STDC__
# undef __P
-# define __P(args) args
+#if __STDC__
+# define __P(Args) Args
#else
-# define __P(args) ()
+# define __P(Args) ()
#endif
int
diff --git a/lib/memcmp.c b/lib/memcmp.c
index 98f7ed7911..6096651e5b 100644
--- a/lib/memcmp.c
+++ b/lib/memcmp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1993 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1993, 1995 Free Software Foundation, Inc.
Contributed by Torbjorn Granlund (tege@sics.se).
NOTE: The canonical source of this file is maintained with the GNU C Library.
@@ -364,3 +364,10 @@ memcmp (s1, s2, len)
return 0;
}
+
+#ifdef weak_alias
+#undef bcmp
+weak_alias (memcmp, bcmp)
+#endif
+
+
diff --git a/lib/mkdir.c b/lib/mkdir.c
index 8495ad94bc..95fb1a6d40 100644
--- a/lib/mkdir.c
+++ b/lib/mkdir.c
@@ -1,4 +1,4 @@
-/* mkdir.c -- BSD compatible make directory function for System V
+/* BSD compatible make directory function for System V
Copyright (C) 1988, 1990 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -15,8 +15,8 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
+#if HAVE_CONFIG_H
+# include <config.h>
#endif
#include <sys/types.h>
@@ -26,12 +26,12 @@
extern int errno;
#endif
-#ifdef STAT_MACROS_BROKEN
-#undef S_ISDIR
+#if STAT_MACROS_BROKEN
+# undef S_ISDIR
#endif
#if !defined(S_ISDIR) && defined(S_IFDIR)
-#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
+# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
/* mkdir adapted from GNU tar. */