olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1505492-undef-22.patch

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