summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-24 11:00:22 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-24 11:00:22 -0500
commitefd279db50eed5ccab8d56c3509ca2658d5b389d (patch)
treee0632b4367d72ec2ad4dc9c33e7bab739a522439
parent6b5a2730a5d1f658e027af0028bd06bf1a956212 (diff)
downloaduserland-efd279db50eed5ccab8d56c3509ca2658d5b389d.tar.gz
userland-efd279db50eed5ccab8d56c3509ca2658d5b389d.tar.bz2
userland-efd279db50eed5ccab8d56c3509ca2658d5b389d.tar.xz
userland-efd279db50eed5ccab8d56c3509ca2658d5b389d.zip
bin/mkdir: make buildable with libbsd
-rw-r--r--bin/mkdir/mkdir.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/bin/mkdir/mkdir.c b/bin/mkdir/mkdir.c
index cb60b88..1500196 100644
--- a/bin/mkdir/mkdir.c
+++ b/bin/mkdir/mkdir.c
@@ -29,20 +29,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-#ifndef lint
-__COPYRIGHT("@(#) Copyright (c) 1983, 1992, 1993\
- The Regents of the University of California. All rights reserved.");
-#endif /* not lint */
-
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)mkdir.c 8.2 (Berkeley) 1/25/94";
-#else
-__RCSID("$NetBSD: mkdir.c,v 1.38 2011/08/29 14:45:28 joerg Exp $");
-#endif
-#endif /* not lint */
-
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
@@ -52,11 +38,13 @@ __RCSID("$NetBSD: mkdir.c,v 1.38 2011/08/29 14:45:28 joerg Exp $");
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
+#include <bsd/stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <bsd/unistd.h>
-static int mkpath(char *, mode_t, mode_t);
-__dead static void usage(void);
+static int mkpath(char *, mode_t, mode_t);
+static void usage(void);
int
main(int argc, char *argv[])