Since we adopted libroken, we get a lot of header includes automatically
from roken.h. Use these, instead of including lots of things multiple
times.
Change-Id: Ie4f0f87074b9f9c5a028098ea39e548d9932e54a
Reviewed-on: http://gerrit.openafs.org/4331
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
* Glue code for the kopenafs API. Mostly just wrappers around the functions
* included in the libsys code.
*/
+#include <afsconfig.h>
+#include <afs/param.h>
+
+#include <roken.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <signal.h>
-#include <stdlib.h>
#ifdef AFS_AIX51_ENV
# include <sys/cred.h>
# ifdef HAVE_SYS_PAG_H
# include <sys/pag.h>
# endif
#endif
-#include <sys/param.h>
-#include <unistd.h>
-#include <afsconfig.h>
#include <afs/afssyscalls.h>
-#include <afs/param.h>
#include <kopenafs.h>
static volatile sig_atomic_t syscall_okay = 1;
#include <errno.h>
#include <stdio.h>
+#include "kopenafs.h"
+
int
main(void)
{