musl: Move W_STOPCODE to common/gdb_wait.h.
[deliverable/binutils-gdb.git] / gdb / common / gdb_wait.h
index 9b250d250ae26e5cedc2ce7ec7d21e666a78f60b..412f8131212f07ff364ce30c50a78e35108884e2 100644 (file)
 # endif
 #endif
 
+#ifndef W_STOPCODE
+#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
+#endif
+
 #ifndef        WSETSTOP
-# ifdef        W_STOPCODE
 #define        WSETSTOP(w,sig)    ((w) = W_STOPCODE(sig))
-# else
-#define WSETSTOP(w,sig)           ((w) = (0177 | ((sig) << 8)))
-# endif
 #endif
 
 /* For native GNU/Linux we may use waitpid and the __WCLONE option.
This page took 0.024979 seconds and 4 git commands to generate.