unistd: fix typo
authorEric Blake <ebb9@byu.net>
Wed, 30 Dec 2009 23:14:05 +0000 (16:14 -0700)
committerEric Blake <ebb9@byu.net>
Thu, 31 Dec 2009 04:05:10 +0000 (21:05 -0700)
This typo ended up incompatibly re-defining the macro link()
during -DGNULIB_POSIXCHECK=1.  However, gcc's pragma system_header
squelches that particular warning, so this typo went unnoticed.

* lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/unistd.in.h

index 8a18917..1417d0d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-30  Eric Blake  <ebb9@byu.net>
+
+       unistd: fix typo
+       * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
+
 2009-12-30  Bruno Haible  <bruno@clisp.org>
 
        Fix compilation error with Solaris cc.
index af2d563..1e4060c 100644 (file)
@@ -646,7 +646,7 @@ extern int linkat (int fd1, const char *path1, int fd2, const char *path2,
 # endif
 #elif defined GNULIB_POSIXCHECK
 # undef linkat
-# define link(f1,path1,f2,path2,f)              \
+# define linkat(f1,path1,f2,path2,f)              \
     (GL_LINK_WARNING ("linkat is unportable - " \
                       "use gnulib module linkat for portability"), \
      linkat (f1, path1, f2, path2,f))