s4:torture: Adapt KDC canon test to Heimdal upstream changes
[Samba.git] / source4 / heimdal_build / include / krb5-types.h
blob62a54dd9722803d8e332512ba083166b88afd367
1 /* krb5-types.h -- this file was generated for i686-pc-linux-gnu by
2 $Id: bits.c,v 1.23 2005/01/05 15:22:02 lha Exp $ */
4 #ifndef __samba_krb5_types_h__
5 #define __samba_krb5_types_h__
7 #include "replace.h"
8 #include "system/network.h"
9 #include "lib/util/attr.h"
11 #if defined USING_SYSTEM_KRB5 && defined HEIMDAL_KRB5_TYPES_PATH
12 #include HEIMDAL_KRB5_TYPES_PATH
13 #else
14 typedef socklen_t krb5_socklen_t;
15 typedef int krb5_socket_t;
16 typedef ssize_t krb5_ssize_t;
17 #endif
20 #ifndef HEIMDAL_DEPRECATED
21 #define HEIMDAL_DEPRECATED _DEPRECATED_
22 #endif
24 #ifndef HEIMDAL_PRINTF_ATTRIBUTE
25 #ifdef HAVE_ATTRIBUTE_PRINTF
26 #define HEIMDAL_PRINTF_ATTRIBUTE(x) __attribute__((format x))
27 #else
28 #define HEIMDAL_PRINTF_ATTRIBUTE(x)
29 #endif
30 #endif
32 #ifndef HEIMDAL_NORETURN_ATTRIBUTE
33 #ifdef HAVE___ATTRIBUTE__
34 #define HEIMDAL_NORETURN_ATTRIBUTE __attribute__((noreturn))
35 #else
36 #define HEIMDAL_NORETURN_ATTRIBUTE
37 #endif
38 #endif
40 #ifndef HEIMDAL_UNUSED_ATTRIBUTE
41 #ifdef HAVE___ATTRIBUTE__
42 #define HEIMDAL_UNUSED_ATTRIBUTE __attribute__((unused))
43 #else
44 #define HEIMDAL_UNUSED_ATTRIBUTE
45 #endif
46 #endif
48 #ifndef HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE
49 #ifdef HAVE___ATTRIBUTE__
50 #define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE _WARN_UNUSED_RESULT_
51 #else
52 #define HEIMDAL_WARN_UNUSED_RESULT_ATTRIBUTE
53 #endif
54 #endif
56 #endif /* __samb_krb5_types_h__ */