summaryrefslogtreecommitdiffstats
path: root/crypto/kerberosIV/include/ktypes.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1997-09-04 06:04:33 +0000
committermarkm <markm@FreeBSD.org>1997-09-04 06:04:33 +0000
commita8a89cfaf983bc64f4b42f7c35209a5a36dd0fe8 (patch)
tree0b84977f19022a965f8c6145f067f951173f6290 /crypto/kerberosIV/include/ktypes.c
downloadFreeBSD-src-a8a89cfaf983bc64f4b42f7c35209a5a36dd0fe8.zip
FreeBSD-src-a8a89cfaf983bc64f4b42f7c35209a5a36dd0fe8.tar.gz
Initial import of KTH eBones. This has been cleaned up to only include
the "core" Kerberos functionality. The rest of the userland will get their own changes later.
Diffstat (limited to 'crypto/kerberosIV/include/ktypes.c')
-rw-r--r--crypto/kerberosIV/include/ktypes.c64
1 files changed, 64 insertions, 0 deletions
diff --git a/crypto/kerberosIV/include/ktypes.c b/crypto/kerberosIV/include/ktypes.c
new file mode 100644
index 0000000..eb6ad48
--- /dev/null
+++ b/crypto/kerberosIV/include/ktypes.c
@@ -0,0 +1,64 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+RCSID("$Id: ktypes.c,v 1.4 1997/05/31 08:52:09 bg Exp $");
+#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_BITYPES_H
+#include <sys/bitypes.h>
+#endif
+#ifdef HAVE_BIND_BITYPES_H
+#include <bind/bitypes.h>
+#endif
+#ifdef HAVE_NETINET_IN6_MACHTYPES_H
+#include <netinet/in6_machtypes.h>
+#endif
+
+int
+main(void)
+{
+ printf ("/*\n"
+ " * This file was automatically generated by\n"
+ " * $Id: ktypes.c,v 1.4 1997/05/31 08:52:09 bg Exp $.\n"
+ " * Please do not edit\n"
+ " */\n\n");
+
+ printf ("#ifndef __KTYPES_H__\n"
+ "#define __KTYPES_H__\n\n");
+
+#ifdef HAVE_SYS_TYPES_H
+ printf("#include <sys/types.h>\n");
+#endif
+#ifdef HAVE_SYS_BITYPES_H
+ printf("#include <sys/bitypes.h>\n");
+#endif
+#ifdef HAVE_BIND_BITYPES_H
+ printf("#include <bind/bitypes.h>\n");
+#endif
+#ifdef HAVE_NETINET_IN6_MACHTYPES_H
+ printf("#include <netinet/in6_machtypes.h>\n");
+#endif
+
+#ifndef HAVE_INT8_T
+ printf("typedef signed char int8_t;\n");
+#endif
+#ifndef HAVE_U_INT8_T
+ printf("typedef unsigned char u_int8_t;\n");
+#endif
+#ifndef HAVE_INT16_T
+ printf("typedef short int16_t;\n");
+#endif
+#ifndef HAVE_U_INT16_T
+ printf("typedef unsigned short u_int16_t;\n");
+#endif
+#ifndef HAVE_INT32_T
+ printf("typedef int int32_t;\n");
+#endif
+#ifndef HAVE_U_INT32_T
+ printf("typedef unsigned int u_int32_t;\n");
+#endif
+
+ printf("\n#endif /* __KTYPES_H__ */\n");
+ return 0;
+}
OpenPOWER on IntegriCloud