[Nut-upsdev] patch for include/common.h

Tim Rice tim at multitalents.net
Tue Dec 15 01:46:01 UTC 2009


nut-2.4.1

The C compiler on my UnixWare 7.1.4 machine chokes on __attribute in
include/common.h
After reading the comments in 
http://unix.derkeiler.com/Newsgroups/comp.unix.programmer/2005-12/msg00410.html
I came up with this patch
---------------------
--- nut-2.4.1/include/common.h.old	2009-02-17 01:20:40.000000000 -0800
+++ nut-2.4.1/include/common.h	2009-12-10 21:50:22.577404000 -0800
@@ -99,9 +99,9 @@
 void upsdebug_hex(int level, const char *msg, const void *buf, int len);
 		
 void fatal_with_errno(int status, const char *fmt, ...)
-	__attribute__ ((__format__ (__printf__, 2, 3))) __attribute((noreturn));
+	__attribute__ ((__format__ (__printf__, 2, 3))) __attribute__((noreturn));
 void fatalx(int status, const char *fmt, ...)
-	__attribute__ ((__format__ (__printf__, 2, 3))) __attribute((noreturn));
+	__attribute__ ((__format__ (__printf__, 2, 3))) __attribute__((noreturn));
 
 extern int nut_debug_level;
 
---------------------

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net





More information about the Nut-upsdev mailing list