summaryrefslogtreecommitdiffstats
path: root/newlib/libc/unix/getcwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/unix/getcwd.c')
-rw-r--r--newlib/libc/unix/getcwd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/newlib/libc/unix/getcwd.c b/newlib/libc/unix/getcwd.c
index f57e14742..b49a4b6e0 100644
--- a/newlib/libc/unix/getcwd.c
+++ b/newlib/libc/unix/getcwd.c
@@ -1,3 +1,4 @@
+#ifndef _NO_GETCWD
/*
* Copyright (c) 1989, 1991 The Regents of the University of California.
* All rights reserved.
@@ -10,10 +11,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -263,3 +260,4 @@ err:
}
#endif /* _REENT_ONLY */
+#endif /* !_NO_GETCWD */