about summary refs log tree commit diff
path: root/time/sys/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'time/sys/time.h')
-rw-r--r--time/sys/time.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/time/sys/time.h b/time/sys/time.h
index 031134011c..4d55493bcd 100644
--- a/time/sys/time.h
+++ b/time/sys/time.h
@@ -112,7 +112,9 @@ struct itimerval
     struct timeval it_value;
   };
 
-#ifdef __USE_GNU
+#if defined __USE_GNU && !defined __cplusplus
+/* Use the nicer parameter type only in GNU mode and not for C++ since the
+   strict C++ rules prevent the automatic promotion.  */
 typedef enum __itimer_which __itimer_which_t;
 #else
 typedef int __itimer_which_t;