comparison 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
comparison
equal deleted inserted replaced
599:4d0498e1f657 600:58d2fd7484bd
6 6
7 #include "generated/config.h" 7 #include "generated/config.h"
8 8
9 #include "lib/portability.h" 9 #include "lib/portability.h"
10 10
11 #include <crypt.h>
12 #include <ctype.h> 11 #include <ctype.h>
13 #include <dirent.h> 12 #include <dirent.h>
14 #include <errno.h> 13 #include <errno.h>
15 #include <fcntl.h> 14 #include <fcntl.h>
16 #include <grp.h> 15 #include <grp.h>
35 #include <sys/resource.h> 34 #include <sys/resource.h>
36 #include <sys/stat.h> 35 #include <sys/stat.h>
37 #include <sys/statvfs.h> 36 #include <sys/statvfs.h>
38 #include <sys/sysinfo.h> 37 #include <sys/sysinfo.h>
39 #include <sys/swap.h> 38 #include <sys/swap.h>
39 #include <sys/times.h>
40 #include <sys/types.h> 40 #include <sys/types.h>
41 #include <sys/utsname.h> 41 #include <sys/utsname.h>
42 #include <sys/wait.h> 42 #include <sys/wait.h>
43 #include <syslog.h> 43 #include <syslog.h>
44 #include <time.h>
44 #include <unistd.h> 45 #include <unistd.h>
45 #include <utime.h> 46 #include <utime.h>
46 #include <utmpx.h> 47 #include <utmpx.h>
47
48 #undef _XOPEN_SOURCE
49 #define _XOPEN_SOURCE 600
50 #include <time.h>
51 48
52 #include "lib/lib.h" 49 #include "lib/lib.h"
53 #include "toys/e2fs.h" 50 #include "toys/e2fs.h"
54 51
55 // Get list of function prototypes for all enabled command_main() functions. 52 // Get list of function prototypes for all enabled command_main() functions.