[Nut-upsdev] Re: [Nut-upsuser] Network UPS Tools version 2.0.4-pre1 released

George Ross gdmr at inf.ed.ac.uk
Fri Jul 7 13:24:31 UTC 2006


> Network UPS Tools version 2.0.4-pre1 has been released.
> 
> http://www.networkupstools.org/

On FC3 I need this ...

--- drivers/libhid.h.DIST       2006-07-07 10:04:04.000000000 +0100
+++ drivers/libhid.h    2006-07-07 14:21:40.000000000 +0100
@@ -41,6 +41,7 @@
 typedef int bool;
 #endif
 
+#ifdef notdef
 /* ensure these exists (required for Solaris 10) */
 #ifndef u_int16_t
        typedef uint16_t u_int16_t;
@@ -49,6 +50,7 @@
 #ifndef u_int8_t
        typedef uint8_t u_int8_t;
 #endif
+#endif
 
 /* Device open modes */
 #define MODE_OPEN 0

... to avoid this ...

gcc -I../include -O -Wall -Wsign-compare  -c newhidups.c
In file included from newhidups.c:25:
libhid.h:46: error: syntax error before "u_int16_t"
libhid.h:46: warning: useless keyword or type name in empty declaration
libhid.h:46: warning: empty declaration
libhid.h:50: error: syntax error before "u_int8_t"
libhid.h:50: warning: useless keyword or type name in empty declaration
libhid.h:50: warning: empty declaration
make[1]: *** [newhidups.o] Error 1

-- 
Dr George D M Ross, School of Informatics, University of Edinburgh
    Kings Buildings, Mayfield Road, Edinburgh, Scotland, EH9 3JZ
Mail: gdmr at inf.ed.ac.uk   Voice: +44 131 650 5147   Fax: +44 131 667 7209
 PGP: 1024D/AD758CC5  B91E D430 1E0D 5883 EF6A  426C B676 5C2B AD75 8CC5


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 238 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20060707/f07b6bab/attachment.pgp


More information about the Nut-upsdev mailing list