]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Include stdint.h when using intptr_t
authorAndrew Deason <adeason@sinenomine.net>
Wed, 17 Feb 2010 18:56:51 +0000 (12:56 -0600)
committerDerrick Brashear <shadow@dementia.org>
Wed, 17 Feb 2010 20:49:27 +0000 (12:49 -0800)
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:
src/afsd/vsys.c
src/afsmonitor/afsmonitor.c
src/bozo/bnode.c
src/bozo/bosoprocs.c
src/bucoord/dump.c
src/budb/dbs_dump.c
src/butc/dump.c
src/butc/lwps.c
src/butc/recoverDb.c
src/butc/tcprocs.c
src/butc/tcudbprocs.c
src/butm/file_tm.c
src/dir/salvage.c
src/kauth/authclient.c
src/rx/rx.c
src/rx/rx_pthread.c
src/rxkad/rxkad_server.c
src/scout/scout.c
src/ubik/ubikclient.c
src/usd/usd_file.c
src/util/serverLog.c
src/viced/viced.c
src/vlserver/vlserver.c
src/vol/fssync-server.c
src/vol/vnode.c
src/volser/volmain.c
src/volser/vos.c

index 0dd4a895c157c214fb3d27e69f1b38e25f2d5fd6..b1df7ebb25d72e304f63033ff54fddb917503fee 100644 (file)
@@ -16,6 +16,9 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 
 
 #include <afs/afs_args.h>
index 848c44d2cf85e23e3e1f825216ea72770d7c2be0..08e3b4e77f68ee7f9574452629273a88a2798c11 100644 (file)
@@ -31,6 +31,9 @@
 #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 */
index bd28b02cccf9e8e710666b6be4dc8f8adc18c8aa..38ad7c27b0277429e0674f1bc45b2a478042f50c 100644 (file)
@@ -17,6 +17,9 @@
 #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
index 90e935045c37dc07ba4cc933e9c7d38d86e768c0..96f82e809e0f177bc9df870d58cc882b9c3561c9 100644 (file)
@@ -31,6 +31,9 @@
 #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>
index 77478667ce17424477aa749ad853964d5e926e5b..c27424bd7f19796ffde66b8324a9eacde223f9d4 100644 (file)
@@ -17,6 +17,9 @@
 
 #include <sys/types.h>
 #include <afs/cmd.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 #ifdef AFS_NT40_ENV
 #include <winsock2.h>
 #else
index 5ac93a872fc36542093ff4368aef38ec57941a4f..9fad9ad96cd34443a0f3d8cb08e00a82f1aff141 100644 (file)
@@ -25,6 +25,9 @@
 #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>
index 0c1acc3fea967c24ec43c921d1067f0a866d9abe..863270c2656a87755a89b8ce5156f563fe5f41da 100644 (file)
@@ -22,6 +22,9 @@
 #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>
index 0f1daf6d4c99b6c2065eefa177e7ab73b86d9ec4..a111c7bbd411e839fad03a4861c070c1dd7f95cc 100644 (file)
@@ -21,6 +21,9 @@
 #include <netinet/in.h>
 #include <netdb.h>
 #endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 
 #include <afs/procmgmt.h>
 #include <rx/xdr.h>
index 83e6e3075c2e28459be37abb4319a1076be5317c..6274290f6b2e80de99b52b4a3b2107b47dd48690 100644 (file)
@@ -12,6 +12,9 @@
 
 
 #include <stdio.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 #ifdef AFS_NT40_ENV
 #include <winsock2.h>
 #else
index de7d44d2bf868791a340bb36d526208d1bbaa7aa..0b1b6b7f75a38bd0ebdf6d5d63d5ba15ec1819d2 100644 (file)
@@ -15,6 +15,9 @@
 
 #include <sys/types.h>
 #include <errno.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 #ifdef AFS_NT40_ENV
 #include <winsock2.h>
 #else
index b358194ce070e47cc0a855c9c0829635293a84b4..234ca6403bac72af4c1f2513e8992bacb8ab9192 100644 (file)
@@ -15,6 +15,9 @@
 #endif
 
 #include <sys/types.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 #ifdef AFS_NT40_ENV
 #include <winsock2.h>
 #include <io.h>
index e4e02e8cc1696fddfc6535b8a4b1db5c8cdd7a55..333bd5a54636ed2dbc0568a3fbfb608dbbd38861 100644 (file)
@@ -24,6 +24,9 @@
 #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>
index 2b392458368c7f268d6a8421f7750f2550198cfe..ac85ae0f009082aa3d371e5ceb63769ccfbdf760 100644 (file)
 
 #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, ...);
index 9257fa5ad82a237b093cf75b8c0c70026de873c2..de499d369e0ee9e5f3e362e7fbe151b8bc895d4c 100644 (file)
@@ -51,6 +51,9 @@
 #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>
index def5febb81b0b68b2df3702ed663b47ec12e2649..33c422b7089c13c4dc13653fd206257facb4e04b 100755 (executable)
@@ -85,6 +85,9 @@ extern afs_int32 afs_termState;
 # 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>
index 6496eefaa3abd0744f4fb464556e11aa1f8915a0..cab61ec347ed65849a76983edae81805f97d8b30 100644 (file)
@@ -23,6 +23,9 @@
 #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>
index 7638482daf6a3ebb82d110b359a1b8594406ec6c..5b3e503bca67e4d653c2b4f80804135e4637e257 100644 (file)
@@ -32,6 +32,9 @@
 #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
 
index 676e66c3b7a35b2b7d4c6314217855ddb55744fd..0d49b86b389223d9e1633a5236978a40148b1ce0 100644 (file)
@@ -36,6 +36,9 @@
 #include <errno.h>
 #include <afs/afsutil.h>
 #include <netdb.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 
 /*
  * Command line parameter indicies.
index 2f413bf27ede1355bb82576b76533c67769a8b3a..b185db710872f60d0b79094622e5587453c171ad 100644 (file)
@@ -49,6 +49,9 @@
 #include "ubik.h"
 #endif /* defined(UKERNEL) */
 
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 
 short ubik_initializationState;        /*!< initial state is zero */
 
index 0694c81f8d16c94bc160fc540dc4e5904cac64ab..742cda1571ce0d12e4a2fe265f0777ecfc2b9641 100644 (file)
 #include <string.h>
 #include <stdlib.h>
 
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+
 #include <afs/debug.h>
 #include "usd.h"
 
index 736528ac817ddb2774cc9242ac6cf664d3cdf0ea..98e5eb052db363ad5e37fd0e16d95b6137a1e894 100644 (file)
@@ -40,6 +40,9 @@
 #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>
index c0245cf0f05c40fab4749e3593b02512e61d3602..4874a6fa52d7d0ddf66be8709134693235747e30 100644 (file)
@@ -30,6 +30,9 @@
 #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>
index 25c6397f3e3cc5c4085e4d13ee2600cb2cbfb9fd..e96fcbb07c6c372fdefae85c5d926722edde5f07 100644 (file)
@@ -34,6 +34,9 @@
 #include <netinet/in.h>
 #endif
 #include <stdio.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
 
 #include <rx/xdr.h>
 #include <rx/rx.h>
index 1d2f6655351e3d4d198942fc36d73b47604b159a..3f9578e2b1c64c6c6239039cea98c5f3e3393907 100644 (file)
@@ -46,6 +46,9 @@
 
 #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>
index e20057133f727dfaa22262aecb6453242ac1b257..269800a30dcc34d72ca6522680b5adf6bda3aa13 100644 (file)
 #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, ...);
index 459550b257696b0096402994a7a306ee76c8b375..8827e71af12deda66e9aa0e03579786fa8fc6ec0 100644 (file)
@@ -13,6 +13,9 @@
 
 #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>
index 7e45ec8f03ee2267837b4842766c8f447864ffe6..ed9c58a31d9507530363b2a9c948dfeff1052435 100644 (file)
@@ -16,6 +16,9 @@
 
 #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>