unistd: avoid redundant includes 83/284383/1 accepted/tizen_base_riscv accepted/tizen_base_tool accepted/tizen/8.0/base/20231005.045317 accepted/tizen/base/20230714.003606 accepted/tizen/base/riscv/20231130.004933 accepted/tizen/base/tool/20221130.233650 submit/tizen_base/20221129.015542 tizen_8.0_m2_release
authorEric Blake <ebb9@byu.net>
Mon, 21 Dec 2009 18:32:58 +0000 (11:32 -0700)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Thu, 1 Sep 2022 19:49:11 +0000 (21:49 +0200)
* lib/unistd_.h (getcwd): No need to re-include <stdlib.h>.

Change-Id: Id3256ea5506dea9e7ee820582de9bdfedd32b967
Signed-off-by: Eric Blake <ebb9@byu.net>
Origin: https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=adbded99ab66dd4da5daa65db02fe890ab3e9729
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
lib/ChangeLog
lib/unistd_.h

index e1b4c7aaca0648c973a918bd8903b509f2cacbac..9dbc8d17f90a4565e3ccb688b15819f1fe704b73 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-22  Eric Blake  <ebb9@byu.net>
+
+       math, unistd: avoid redundant includes
+       * lib/unistd_.h (getcwd): Likewise, for <stdlib.h>.
+
 2007-03-20  Jim Meyering  <jim@meyering.net>
 
        Fix a typo in the handling of %x and %X.
index 77df86116ffbef7db14dc4366aecae12235f68f9..9c6d80b982a3f4d7354a96e36dd494e58f1843d1 100644 (file)
@@ -116,9 +116,6 @@ extern int ftruncate (int fd, off_t length);
 
 
 #if @GNULIB_GETCWD@
-/* Include the headers that might declare getcwd so that they will not
-   cause confusion if included after this file.  */
-# include <stdlib.h>
 # if @REPLACE_GETCWD@
 /* Get the name of the current working directory, and put it in SIZE bytes
    of BUF.