From 974c1be5ddd0807bca0dcfd4bdf023213d99a2ba Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 4 Nov 1996 17:57:34 +0000 Subject: [PATCH] libitize --- lib/makepath.c | 2 +- lib/makepath.h | 6 +++--- lib/memcmp.c | 9 ++++++++- lib/mkdir.c | 12 ++++++------ 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/lib/makepath.c b/lib/makepath.c index 87d7eb136..028e172af 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 1d8097d39..e62f54433 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 98f7ed791..6096651e5 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 8495ad94b..95fb1a6d4 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 +#if HAVE_CONFIG_H +# include #endif #include @@ -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. */ -- 2.11.0