summaryrefslogtreecommitdiffstats
path: root/contrib/top/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/top/os.h')
-rw-r--r--contrib/top/os.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/top/os.h b/contrib/top/os.h
index d25e93e..8316a4c 100644
--- a/contrib/top/os.h
+++ b/contrib/top/os.h
@@ -27,3 +27,12 @@ caddr_t malloc();
# define memzero(a, b) memset((a), 0, (b))
typedef void sigret_t;
#endif
+
+/* some systems declare sys_errlist in stdio.h! */
+#if defined(__NetBSD__) || defined(__FreeBSD__)
+#if !defined(__m68k__)
+# if !defined(__NetBSD132__)
+#define SYS_ERRLIST_DECLARED
+# endif /* __NetBSD132__ */
+#endif
+#endif
OpenPOWER on IntegriCloud