help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SunOS 5.5.1 patch


From: Armin Wolfermann
Subject: SunOS 5.5.1 patch
Date: Fri, 8 Apr 2005 17:11:11 +0200
User-agent: Mutt/1.5.9i

This small diff makes cfengine compile and work on SunOS 5.5.1. The
changes are only tested on 5.5.1.

--- pub/getloadavg.c.orig       Tue Feb  8 12:51:33 2005
+++ pub/getloadavg.c    Fri Apr  8 15:05:43 2005
@@ -364,7 +364,6 @@
 
 #    ifdef SUNOS_5
 #     include <fcntl.h>
-#     include <kvm.h>
 #     include <kstat.h>
 #    endif
 
--- pub/snprintf.h.orig Tue Feb  8 12:48:48 2005
+++ pub/snprintf.h      Fri Apr  8 15:05:49 2005
@@ -8,6 +8,8 @@
 #ifdef HAVE_SNPRINTF
 #include <stdio.h>
 #else
+#include <sys/types.h>
+#include <stdarg.h>
 extern int snprintf(char *, size_t, const char *, /*args*/ ...);
 extern int vsnprintf(char *, size_t, const char *, va_list);
 #endif
--- src/cf.defs.h.orig  Wed Mar 30 10:41:41 2005
+++ src/cf.defs.h       Fri Apr  8 15:08:20 2005
@@ -62,6 +62,8 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
+#include <db.h>
+
 #ifdef HAVE_SYS_SYSTEMINFO_H
 # include <sys/systeminfo.h>
 #endif
@@ -1995,5 +1997,4 @@
 /********************************************************************/
 
 #include <math.h>
-#include <db.h>
 #include "prototypes.h"





reply via email to

[Prev in Thread] Current Thread [Next in Thread]