From fd450adfe7378555bc79b356caa28fe7e1875d35 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 18 Nov 2008 21:47:44 +0000 Subject: 2008-11-18 Jeff Johnston * libc/unix/basename.c: Add !_NO_BASENAME flag check so code can be ignored if desired by a platform. * libc/unix/dirname.c: Ditto except replace BASENAME with file name. * libc/unix/getcwd.c: Ditto. * libc/unix/getlogin.c: Ditto. * libc/unix/getpass.c: Ditto. * libc/unix/getpwent.c: Ditto. * libc/unix/getut.c: Ditto. * libc/unix/pread.c: Ditto. * libc/unix/pwrite.c: Ditto. * libc/unix/sigset.c: Ditto. --- newlib/libc/unix/basename.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'newlib/libc/unix/basename.c') diff --git a/newlib/libc/unix/basename.c b/newlib/libc/unix/basename.c index 703e532d5..3a9cc0c19 100644 --- a/newlib/libc/unix/basename.c +++ b/newlib/libc/unix/basename.c @@ -1,3 +1,4 @@ +#ifndef _NO_BASENAME /* Copyright 2005 Shaun Jackman * Permission to use, copy, modify, and distribute this software * is freely granted, provided that this notice is preserved. @@ -23,3 +24,5 @@ _DEFUN (basename, (path), p--; return p + 1; } + +#endif /* !_NO_BASENAME */ -- cgit v1.2.3