]> Savannah Git Hosting - gnulib.git/commitdiff
ptsname_r-tests: Avoid unused function warning.
authorBruno Haible <bruno@clisp.org>
Tue, 11 Feb 2020 02:26:14 +0000 (03:26 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 11 Feb 2020 02:26:14 +0000 (03:26 +0100)
* tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.

ChangeLog
tests/test-ptsname_r.c

index a4ee3dd7eedcc5761b28b4aa6cd99221a5bb775a..357763722a23c38824a4efa1f29ea6fedebad90c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-02-10  Bruno Haible  <bruno@clisp.org>
+
+       ptsname_r-tests: Avoid unused function warning.
+       * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
+
 2020-02-08  Bruno Haible  <bruno@clisp.org>
 
        lchmod: Add tests.
index 24be52f31a3cd43e18ef81cdde15b90cd6599993..381e3da9b4d7d188e70677e0e71de66ad0a0d644 100644 (file)
@@ -36,7 +36,10 @@ SIGNATURE_CHECK (ptsname_r, int, (int, char *, size_t));
 
 #include "same-inode.h"
 
-#include "null-ptr.h"
+#if GNULIB_defined_ptsname_r
+# include "null-ptr.h"
+#endif
+
 #include "macros.h"
 
 /* Compare two slave names.