aboutsummaryrefslogtreecommitdiff
path: root/libiberty/getpwd.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-05-16 18:02:47 +0000
committerDJ Delorie <dj@redhat.com>2005-05-16 18:02:47 +0000
commit2349f557002120404ac8b0adf2935e25c615e774 (patch)
tree9ead576059d7bede341b8fb814550228752fe001 /libiberty/getpwd.c
parent83b6bd86547f0e873ace30869c36867982e9c11c (diff)
downloadgdb-2349f557002120404ac8b0adf2935e25c615e774.zip
gdb-2349f557002120404ac8b0adf2935e25c615e774.tar.gz
gdb-2349f557002120404ac8b0adf2935e25c615e774.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/getpwd.c')
-rw-r--r--libiberty/getpwd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libiberty/getpwd.c b/libiberty/getpwd.c
index e57ef47..c7880d7 100644
--- a/libiberty/getpwd.c
+++ b/libiberty/getpwd.c
@@ -39,10 +39,6 @@ extern int errno;
#include <limits.h>
#endif
-/* Prototype these in case the system headers don't provide them. */
-extern char *getpwd ();
-extern char *getwd ();
-
#include "libiberty.h"
/* Virtually every UN*X system now in common use (except for pre-4.3-tahoe
@@ -50,6 +46,8 @@ extern char *getwd ();
the few exceptions to the general rule here. */
#if !defined(HAVE_GETCWD) && defined(HAVE_GETWD)
+/* Prototype in case the system headers doesn't provide it. */
+extern char *getwd ();
#define getcwd(buf,len) getwd(buf)
#endif