Some platforms such as OpenBSD require including stdint.h before you can
use intptr_t. So, include stdint.h (if it is available) whenever we use
intptr_t.
Change-Id: I6da005755752e8d52f62e78d15103b19a951e50a
Reviewed-on: http://gerrit.openafs.org/1336
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
27 files changed:
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include <afs/afs_args.h>
#include <sys/socket.h>
#include <netdb.h>
#include <ctype.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include <afs/gtxwindows.h> /*Generic window package */
#include <afs/gtxobjects.h> /*Object definitions */
#include <dirent.h>
#include <errno.h>
#include <sys/types.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifdef AFS_NT40_ENV
#include <io.h>
#else
#include <des.h>
#include <dirent.h>
#include <stdio.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include <afs/afsutil.h>
#include <afs/fileutil.h>
#include <afs/ktime.h>
#include <sys/types.h>
#include <afs/cmd.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#else
#include <sys/types.h>
#include <afs/stds.h>
#include <stdio.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include <lock.h>
#include <ubik.h>
#include <lwp.h>
#endif
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include <rx/xdr.h>
#include <rx/rx.h>
#include <lwp.h>
#include <netinet/in.h>
#include <netdb.h>
#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include <afs/procmgmt.h>
#include <rx/xdr.h>
#include <stdio.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#else
#include <sys/types.h>
#include <errno.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#else
#endif
#include <sys/types.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#include <io.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include <lwp.h>
#include <afs/com_err.h>
#include <afs/butm.h>
#include <string.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+
#include "dir.h"
/* Defined in vol/vol-salvage.c */
extern void Log(const char *format, ...);
#include <sys/socket.h>
#include <netinet/in.h>
#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include <string.h>
#include <stdio.h>
#include <des.h>
# include <string.h>
# include <stdarg.h>
# include <errno.h>
+# ifdef HAVE_STDINT_H
+# include <stdint.h>
+# endif
#ifdef AFS_NT40_ENV
# include <stdlib.h>
# include <fcntl.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifndef AFS_NT40_ENV
# include <sys/socket.h>
# include <sys/file.h>
#include <des.h>
#include <afs/afsutil.h>
#include <des/stats.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include "private_data.h"
#define XPRT_RXKAD_SERVER
#include <errno.h>
#include <afs/afsutil.h>
#include <netdb.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
/*
* Command line parameter indicies.
#include "ubik.h"
#endif /* defined(UKERNEL) */
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
short ubik_initializationState; /*!< initial state is zero */
#include <string.h>
#include <stdlib.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+
#include <afs/debug.h>
#include "usd.h"
#include "afsutil.h"
#include "fileutil.h"
#include <lwp.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#if defined(AFS_PTHREAD_ENV)
#include <assert.h>
#include <pthread.h>
#include <afs/procmgmt.h> /* signal(), kill(), wait(), etc. */
#include <sys/stat.h>
#include <fcntl.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifdef AFS_NT40_ENV
#include <io.h>
#include <windows.h>
#include <netinet/in.h>
#endif
#include <stdio.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#include <rx/xdr.h>
#include <rx/rx.h>
#include <sys/types.h>
#include <stdio.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#include <time.h>
#endif /* AFS_NT40_ENV */
#include <sys/stat.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+
/*@printflike@*/ extern void Log(const char *format, ...);
/*@printflike@*/ extern void Abort(const char *format, ...);
#include <sys/types.h>
#include <string.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifdef AFS_NT40_ENV
#include <time.h>
#include <fcntl.h>
#include <sys/types.h>
#include <string.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
#ifdef AFS_NT40_ENV
#include <fcntl.h>
#include <io.h>