summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-16 15:34:26 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-16 15:34:26 +0000
commit2d70b1e637d8fc4dc25f58006ed6f6770ea4bbdd (patch)
treef0f3b2c3d66a536cc21e694cae7e7289cbaac60a
parent4b03e6b9b56f1d63747e03a3577c00ba61e7b9c1 (diff)
(EWOULDBLOCK): Define to work around new libc bug.
-rw-r--r--libpipe/pipe.h4
-rw-r--r--proc/wait.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/libpipe/pipe.h b/libpipe/pipe.h
index 677e0356..cc765dc6 100644
--- a/libpipe/pipe.h
+++ b/libpipe/pipe.h
@@ -1,6 +1,6 @@
/* Generic one-way pipes
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -21,6 +21,8 @@
#ifndef __PIPE_H__
#define __PIPE_H__
+#define EWOULDBLOCK EAGAIN /* XXX */
+
#include <cthreads.h> /* For conditions & mutexes */
#include "pq.h"
diff --git a/proc/wait.c b/proc/wait.c
index 8a42b3ef..60ec58ff 100644
--- a/proc/wait.c
+++ b/proc/wait.c
@@ -32,6 +32,8 @@
#include "process_S.h"
#include <mach/mig_errors.h>
+#define EWOULDBLOCK EAGAIN /* XXX */
+
/* Return nonzero if a `waitpid' on WAIT_PID by a process
in MYPGRP cares about the death of PID/PGRP. */
static inline int