Imported Upstream version 1.7.6p1
[debian/sudo] / strerror.c
index cacd3f634e1d2d48f2b9cc0362937ad6d6854cae..88b888bc463b670040e8c7076fd1618999034b17 100644 (file)
  * Materiel Command, USAF, under agreement number F39502-99-1-0512.
  */
 
+#include <config.h>
+
+#include <sys/types.h>
+
 #include <stdio.h>
 #include <errno.h>
 
-#include <config.h>
-#include <compat.h>
+#include "missing.h"
 
 /*
  * Map errno -> error string.
@@ -35,7 +38,7 @@ strerror(n)
     extern char *sys_errlist[];
 
     if (n > 0 && n < sys_nerr)
-       return(sys_errlist[n]);
+       return sys_errlist[n];
     errno = EINVAL;
-    return("Unknown error");
+    return "Unknown error";
 }