about summary refs log tree commit diff
path: root/posix/sys/wait.h
diff options
context:
space:
mode:
Diffstat (limited to 'posix/sys/wait.h')
-rw-r--r--posix/sys/wait.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/sys/wait.h b/posix/sys/wait.h
index 4774885ecf..e931405ecb 100644
--- a/posix/sys/wait.h
+++ b/posix/sys/wait.h
@@ -51,7 +51,7 @@ __BEGIN_DECLS
    allowed without complaint.  __WAIT_STATUS_DEFN is the type used in
    the actual function definitions.  */
 
-# if !defined __GNUC__ || __GNUC__ < 2
+# if !defined __GNUC__ || __GNUC__ < 2 || defined __cplusplus
 #  define __WAIT_STATUS		__ptr_t
 #  define __WAIT_STATUS_DEFN	__ptr_t
 # else