clean up spec file for packaging
[profile/ivi/libedit.git] / packaging / 00-sys.h.patch
1 --- export/src/sys.h    2009-09-23 22:55:51.000000000 +0200
2 +++ ../src/sys.h        2009-09-23 23:04:26.000000000 +0200
3 @@ -40,6 +40,8 @@
4  #ifndef _h_sys
5  #define        _h_sys
6  
7 +#include <config.h>
8 +
9  #ifdef HAVE_SYS_CDEFS_H
10  #include <sys/cdefs.h>
11  #endif
12 @@ -48,6 +50,14 @@
13  # define __attribute__(A)
14  #endif
15  
16 +#ifndef __P
17 +# define __P(x) x
18 +#endif
19 +
20 +#ifndef _DIAGASSERT
21 +# define _DIAGASSERT(x)
22 +#endif
23 +
24  #ifndef __BEGIN_DECLS
25  # ifdef  __cplusplus
26  #  define __BEGIN_DECLS  extern "C" {
27 @@ -71,6 +81,10 @@
28                         /* When we want to hide everything      */
29  #endif
30  
31 +#ifndef HAVE_U_INT32_T
32 +typedef unsigned int  u_int32_t;
33 +#endif
34 +
35  #ifndef _PTR_T
36  # define _PTR_T
37  typedef void   *ptr_t;