Formerly generic/waitstatus.h.~3~
authorroland <roland>
Wed, 18 Nov 1992 19:05:37 +0000 (19:05 +0000)
committerroland <roland>
Wed, 18 Nov 1992 19:05:37 +0000 (19:05 +0000)
sysdeps/generic/waitstatus.h

index 52099a9..5100c66 100644 (file)
@@ -62,29 +62,31 @@ union wait
   {
     struct
       {
-#ifdef __LITTLE_ENDIAN
+#if    __BYTE_ORDER == __LITTLE_ENDIAN
        unsigned int __w_termsig:7; /* Terminating signal.  */
        unsigned int __w_coredump:1; /* Set if dumped core.  */
        unsigned int __w_retcode:8; /* Return code if exited normally.  */
        unsigned int:16;
-#else                          /* Big endian.  */
+#endif                         /* Little endian.  */
+#if    __BYTE_ORDER == __BIG_ENDIAN
        unsigned int:16;
        unsigned int __w_retcode:8;
        unsigned int __w_coredump:1;
        unsigned int __w_termsig:7;
-#endif                         /* Little endian.  */
+#endif                         /* Big endian.  */
       } __wait_terminated;
     struct
       {
-#ifdef __LITTLE_ENDIAN
+#if    __BYTE_ORDER == __LITTLE_ENDIAN
        unsigned int __w_stopval:8; /* W_STOPPED if stopped.  */
        unsigned int __w_stopsig:8; /* Stopping signal.  */
        unsigned int:16;
-#else                          /* Big endian.  */
+#endif                         /* Little endian.  */
+#if    __BYTE_ORDER == __BIG_ENDIAN
        unsigned int:16;
        unsigned int __w_stopsig:8; /* Stopping signal.  */
        unsigned int __w_stopval:8; /* W_STOPPED if stopped.  */
-#endif                         /* Little endian.  */
+#endif                         /* Big endian.  */
       } __wait_stopped;
   };