aboutsummaryrefslogtreecommitdiff
path: root/compat/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/getopt.h')
-rw-r--r--compat/getopt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/getopt.h b/compat/getopt.h
index aab7fe2e..92935a5a 100644
--- a/compat/getopt.h
+++ b/compat/getopt.h
@@ -33,7 +33,9 @@
#ifndef _GETOPT_H_
#define _GETOPT_H_
+#if !defined (__SVR4) || !defined (__sun)
#include <sys/cdefs.h>
+#endif
/*
* GNU-like getopt_long() and 4.4BSD getsubopt()/optreset extensions