]> granicus.if.org Git - sudo/commitdiff
Add #include of sys/types.h for .c files that include missing.h to
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 30 Aug 2010 13:08:16 +0000 (09:08 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 30 Aug 2010 13:08:16 +0000 (09:08 -0400)
be sure that size_t and ssize_t are defined.

--HG--
branch : 1.7

error.c
getprogname.c
isblank.c
missing.h
mksiglist.c
sigaction.c
strerror.c
strsignal.c
sudo_noexec.c

diff --git a/error.c b/error.c
index 3e81b4fd3e90e2e0f4b0f7a4e7b0cc619518410c..50fde439cc8821de70a0c93e60235b48485b2b83 100644 (file)
--- a/error.c
+++ b/error.c
@@ -14,6 +14,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <sys/types.h>
+
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
index 96aa0bd0a605cfeb411cb8bf1118d3bc8157f3c4..ab04a7ce20bb18481135a987480734de9d5495d5 100644 (file)
@@ -18,6 +18,8 @@
  * Materiel Command, USAF, under agreement number F39502-99-1-0512.
  */
 
+#include <sys/types.h>
+
 #include <stdio.h>
 #include <string.h>
 
index b8732b2bf886b71e549ac738a9f33fa52c0ed1f5..78f373937ce5511300d34e1becf4e6f55735e1f0 100644 (file)
--- a/isblank.c
+++ b/isblank.c
@@ -15,6 +15,7 @@
  */
 
 #include <config.h>
+#include <sys/types.h>
 #include <missing.h>
 
 #undef isblank
index d471603eb469b88682722ab6ec4c2660167f0ad8..8e2cc8350d2cc6e62701f78a78ea2945874ed9fd 100644 (file)
--- a/missing.h
+++ b/missing.h
 #ifndef _SUDO_MISSING_H
 #define _SUDO_MISSING_H
 
+#ifndef NULL
+# include <stdio.h>
+#endif
+#ifdef __STDC__
+# include <stdarg.h>
+#else
+# include <varargs.h>
+#endif
+
 /*
  * Macros that may be missing on some Operating Systems
  */
@@ -309,13 +318,6 @@ const char *getprogname __P((void));
 # define WCOREDUMP(x)  ((x) & 0x80)
 #endif
 
-#include <stdio.h>
-#ifdef __STDC__
-# include <stdarg.h>
-#else
-# include <varargs.h>
-#endif
-
 /* Functions "missing" from libc. */
 
 struct timeval;
index 94ac1abf89cf6ab6026b4c62df2e68dc40b6a4d9..5e5d3274581a73f27a3eb057b135d156238b7cb6 100644 (file)
@@ -17,6 +17,8 @@
 
 #include <config.h>
 
+#include <sys/types.h>
+
 #include <stdio.h>
 #ifdef STDC_HEADERS
 # include <stdlib.h>
index 824917bb4f3e4d94934f588e0dba618e70228b54..aee0abfd052d1968738f420ca40a855de08dd143 100644 (file)
@@ -18,6 +18,7 @@
  * Materiel Command, USAF, under agreement number F39502-99-1-0512.
  */
 
+#include <sys/types.h>
 #include <signal.h>
 #include <errno.h>
 
index 0cd995dafba6c4d76d8296345f9356fec6ac3841..fa2f6f639e8fbb7ab6d0a26e901307d4e1b7b7f3 100644 (file)
@@ -18,6 +18,7 @@
  * Materiel Command, USAF, under agreement number F39502-99-1-0512.
  */
 
+#include <sys/types.h>
 #include <stdio.h>
 #include <errno.h>
 
index 8414f646affd1bdd1efcddc6a7b45168616045ac..16da776336139bbc6c0abffb21bd26150e36506f 100644 (file)
@@ -14,6 +14,8 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <sys/types.h>
+
 #include <stdio.h>
 #include <signal.h>
 
index 3632207b8cabc46187204c39c48420f4a6e1b041..5f450858c1cb0af04ed997537076664017d09c3c 100644 (file)
@@ -16,6 +16,8 @@
 
 #include <config.h>
 
+#include <sys/types.h>
+
 #include <errno.h>
 #ifndef HAVE_TIMESPEC
 # include <time.h>