Thank you to:
Casper Dik <casper@holland.Sun.COM>
Who pointed me in the right direction:
>
>You probably need to change the db.h a bit so that it doesn't declare these
>types. Is tehre a configuration option?
>
>gcc won't help.
>
And particularly to:
Randall S. Winchester <rsw@Glue.umd.edu>
who gave me the solution, I'd never found by myself:
diff -c -r1.1 db.h
*** 1.1 1997/09/24 14:50:21
--- db.h 1997/09/24 15:04:38
***************
*** 49,54 ****
--- 49,62 ----
#define RET_SUCCESS 0
#define RET_SPECIAL 1
+ #ifdef _SYS_INT_TYPES_H
+ typedef unsigned char u_int8_t;
+ typedef unsigned short u_int16_t;
+ typedef unsigned int u_int32_t;
+ typedef unsigned long long u_int64_t;
+ #define __BIT_TYPES_DEFINED__
+ #endif
+
#ifndef __BIT_TYPES_DEFINED__
#define __BIT_TYPES_DEFINED__
typedef __signed char int8_t;
He also points out that the present interface definitions in
<sys/int_types.h> breaks __BIT_TYPES_DEFINED__ which is integral part
of BIND and will affect many other applications as well. His fix for
the os included header file is:
diff -c -r1.1 int_types.h
*** 1.1 1997/09/24 15:13:49
--- int_types.h 1997/09/24 15:25:56
***************
*** 5,10 ****
--- 5,12 ----
#ifndef _SYS_INT_TYPES_H
#define _SYS_INT_TYPES_H
+ #ifndef __BIT_TYPES_DEFINED__
+ #define __BIT_TYPES_DEFINED__
#pragma ident "@(#)int_types.h 1.4 96/09/25 SMI"
***************
*** 76,88 ****
--- 78,95 ----
#endif
typedef unsigned char uint8_t;
+ typedef unsigned char u_int8_t;
typedef unsigned short uint16_t;
+ typedef unsigned short u_int16_t;
typedef unsigned int uint32_t;
+ typedef unsigned int u_int32_t;
#ifdef _LP64
typedef unsigned long uint64_t;
+ typedef unsigned long u_int64_t;
#else /* _ILP32 */
#if __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)
typedef unsigned long long uint64_t;
+ typedef unsigned long long u_int64_t;
#endif
#endif
***************
*** 147,150 ****
--- 154,158 ----
}
#endif
+ #endif /* __BIT_TYPES_DEFINED__ */
#endif /* _SYS_INT_TYPES_H */
-- P. Alejandro López-Valencia Computational Ecologist alejolo@ideam.gov.co http://trailerpark.com/elcamino/alejo/Satiyat nasti paro dharma!
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:04 CDT