aboutsummaryrefslogtreecommitdiff
path: root/contrib/cvs/lib/wait.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cvs/lib/wait.h')
-rw-r--r--contrib/cvs/lib/wait.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/contrib/cvs/lib/wait.h b/contrib/cvs/lib/wait.h
index db60434144aa..60ed47a2724a 100644
--- a/contrib/cvs/lib/wait.h
+++ b/contrib/cvs/lib/wait.h
@@ -9,11 +9,7 @@
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+ GNU General Public License for more details. */
#ifdef HAVE_SYS_WAIT_H
#include <sys/types.h> /* For pid_t. */
@@ -21,12 +17,23 @@
#include <sys/resource.h> /* for rusage */
#endif
#include <sys/wait.h>
-#else
+#endif
+#ifndef WIFSTOPPED
#define WIFSTOPPED(w) (((w) & 0xff) == 0x7f)
+#endif
+#ifndef WIFSIGNALED
#define WIFSIGNALED(w) (((w) & 0xff) != 0x7f && ((w) & 0xff) != 0)
+#endif
+#ifndef WIFEXITED
#define WIFEXITED(w) (((w) & 0xff) == 0)
+#endif
+#ifndef WSTOPSIG
#define WSTOPSIG(w) (((w) >> 8) & 0xff)
+#endif
+#ifndef WTERMSIG
#define WTERMSIG(w) ((w) & 0x7f)
+#endif
+#ifndef WEXITSTATUS
#define WEXITSTATUS(w) (((w) >> 8) & 0xff)
#endif