Mercurial > hg > toybox
diff toys.h @ 600:58d2fd7484bd
More header fiddling: crypt.h is silly, SUSv4 requires crypt() to be prototyped in unistd.h. The fact glibc refuses to do so without a wacky #define is a glibc bug, treat it as such.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 16 Jun 2012 14:19:56 -0500 |
parents | d8effa95a5f0 |
children | c8330ef95d13 |
line wrap: on
line diff
--- a/toys.h Thu Jun 14 00:33:33 2012 -0500 +++ b/toys.h Sat Jun 16 14:19:56 2012 -0500 @@ -8,7 +8,6 @@ #include "lib/portability.h" -#include <crypt.h> #include <ctype.h> #include <dirent.h> #include <errno.h> @@ -37,18 +36,16 @@ #include <sys/statvfs.h> #include <sys/sysinfo.h> #include <sys/swap.h> +#include <sys/times.h> #include <sys/types.h> #include <sys/utsname.h> #include <sys/wait.h> #include <syslog.h> +#include <time.h> #include <unistd.h> #include <utime.h> #include <utmpx.h> -#undef _XOPEN_SOURCE -#define _XOPEN_SOURCE 600 -#include <time.h> - #include "lib/lib.h" #include "toys/e2fs.h"