c6d234
commit 73ba67cbc3941c3bcfda31a22a9d0d97ac928f3b
c6d234
Author: Andreas Schwab <schwab@suse.de>
c6d234
Date:   Tue May 13 17:04:27 2014 +0200
c6d234
c6d234
    Fix macro warning on HAVE_PT_CHOWN
c6d234
c6d234
diff --git a/config.h.in b/config.h.in
c6d234
index ef33c23c75ad2220..820ada7bb209b6f1 100644
c6d234
--- a/config.h.in
c6d234
+++ b/config.h.in
c6d234
@@ -258,6 +258,6 @@
c6d234
 #undef HAVE_ARM_PCS_VFP
c6d234
 
c6d234
 /* The pt_chown binary is being built and used by grantpt.  */
c6d234
-#undef HAVE_PT_CHOWN
c6d234
+#define HAVE_PT_CHOWN 0
c6d234
 
c6d234
 #endif
c6d234
diff --git a/sysdeps/unix/grantpt.c b/sysdeps/unix/grantpt.c
c6d234
index 66ff3d9f41ae50a7..b7fb61ada3c789c4 100644
c6d234
--- a/sysdeps/unix/grantpt.c
c6d234
+++ b/sysdeps/unix/grantpt.c
c6d234
@@ -176,7 +176,7 @@ grantpt (int fd)
c6d234
   /* We have to use the helper program if it is available.  */
c6d234
  helper:;
c6d234
 
c6d234
-#ifdef HAVE_PT_CHOWN
c6d234
+#if HAVE_PT_CHOWN
c6d234
   pid_t pid = __fork ();
c6d234
   if (pid == -1)
c6d234
     goto cleanup;