summaryrefslogtreecommitdiff
path: root/libiberty/getpwd.c
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-16 13:52:39 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-16 13:52:39 +0000
commit77f60c55d4cf3eecdb827d230d906ceda8948b67 (patch)
treeb7ca97ec1705022db2618739fdb19572ea51b18d /libiberty/getpwd.c
parent5c5ccba291e6d6a7763b8b2a773503c7a0659306 (diff)
downloadgcc-77f60c55d4cf3eecdb827d230d906ceda8948b67.tar.gz
* getpwd.c: Remove unneeded prototype getcwd and move getwd so
that it's only declared if needed. * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99775 138bc75d-0d04-0410-961f-82ee72b054a4
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 e57ef47e947..c7880d70444 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