diff loader/ldt_keeper.c @ 18362:29b2221982b3

Add a check for sysi86() on Solaris systems, solving a build failure on Solaris 10 x86 to avoid using a local declaration that is no longer compatible. patch by "Derek E. Lewis", dlewis $$@$$ solnetworks %%.%% net
author diego
date Sun, 30 Apr 2006 21:17:30 +0000
parents dcc1be050037
children 0783dd397f74
line wrap: on
line diff
--- a/loader/ldt_keeper.c	Sun Apr 30 20:36:13 2006 +0000
+++ b/loader/ldt_keeper.c	Sun Apr 30 21:17:30 2006 +0000
@@ -60,6 +60,7 @@
 #include <sys/sysi86.h>
 
 /* solaris x86: add missing prototype for sysi86() */
+#ifdef HAVE_SYSI86
 #ifdef  __cplusplus
 extern "C" {
 #endif
@@ -67,6 +68,7 @@
 #ifdef  __cplusplus
 }
 #endif
+#endif
 
 #ifndef NUMSYSLDTS             /* SunOS 2.5.1 does not define NUMSYSLDTS */
 #define NUMSYSLDTS     6       /* Let's hope the SunOS 5.8 value is OK */