]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix inclusion of mach headers in all standards
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 4 Mar 2018 01:49:44 +0000 (02:49 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 4 Mar 2018 01:53:09 +0000 (02:53 +0100)
mig_support does not actually inline the stpncpy any more.

* mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
* scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
headers.

ChangeLog
mach/mach/mig_support.h
scripts/check-installed-headers.sh

index 819a8db2cd4542dd7b76e73ea7e7200e144d92c4..33d3008a91b7b886940301ca0697f6fcd252aa93 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,9 @@
        * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
        Process mig output through $(migheadersed).
        * hurd/Makefile (migheadersed): Define variable.
+       * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
+       * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
+       headers.
 
 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
 
index 56ec6dfab8d1a37718ec3b92c02ad76d72daceed..fc17062b6a2311f41886dc9a761f65fcba0bb4a9 100644 (file)
 #include <sys/types.h>
 #include <string.h>
 
-#ifndef __USE_GNU
-/* The only problem that has come up so far is __stpncpy being undeclared
-   below because <string.h> doesn't declare it without __USE_GNU.  We could
-   work around that problem by just adding the declaration there, or by
-   eliding the inline functions in the absence of __USE_GNU.  But either of
-   these would result in unoptimized calls (because no inline version of
-   __stpncpy will have been defined), and there may be other niggling
-   problems lurking.  Instead we simply insist on _GNU_SOURCE for
-   compiling mig output; anyway, that better reflects the fact that mig
-   output requires nonstandard special support code not found elsewhere.  */
-# error mig stubs must be compiled with -D_GNU_SOURCE
-#endif
-
 /* MiG initialization.  */
 extern void __mig_init (void *__first);
 extern void mig_init (void *__first);
index f7f55917f749451ff8e2a579dcf0fe8636c7cb53..4a062e9cdaa579782aeb93478c407319cf99874c 100644 (file)
@@ -126,13 +126,7 @@ EOF
                     fi
                 ;;
             esac
-           ;;
-
-       # Hurd and Mach headers are not standard anyway
-       (hurd.h | hurd/*.h | faultexc_server.h | \
-        mach.h | mach_init.h | mach_error.h | mach-shortcuts.h | mach/* | \
-        device/* | lock-intern.h | spin-lock.h | machine-sp.h)
-           continue;;
+            ;;
     esac
 
     echo :: "$header"