summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-11 18:23:50 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-05-11 18:23:50 -0500
commit51b081b4a0cf3da4d325aeb395e8157f0634f1e0 (patch)
treea95fe28b38fa0d7d0ec592f4ed86cd470692810a
parentddc7837510e320c9378252027cce21f836bfcd16 (diff)
downloaduserland-51b081b4a0cf3da4d325aeb395e8157f0634f1e0.tar.gz
userland-51b081b4a0cf3da4d325aeb395e8157f0634f1e0.tar.bz2
userland-51b081b4a0cf3da4d325aeb395e8157f0634f1e0.tar.xz
userland-51b081b4a0cf3da4d325aeb395e8157f0634f1e0.zip
bin/chmod: make buildable via libbsd
-rw-r--r--bin/chmod/chmod.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/bin/chmod/chmod.c b/bin/chmod/chmod.c
index c10101e..160a163 100644
--- a/bin/chmod/chmod.c
+++ b/bin/chmod/chmod.c
@@ -29,21 +29,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-#ifndef lint
-__COPYRIGHT(
-"@(#) Copyright (c) 1989, 1993, 1994\
- The Regents of the University of California. All rights reserved.");
-#endif /* not lint */
-
-#ifndef lint
-#if 0
-static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
-#else
-__RCSID("$NetBSD: chmod.c,v 1.38 2012/10/22 18:00:46 christos Exp $");
-#endif
-#endif /* not lint */
-
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
@@ -55,11 +40,13 @@ __RCSID("$NetBSD: chmod.c,v 1.38 2012/10/22 18:00:46 christos Exp $");
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
+#include <bsd/stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <bsd/unistd.h>
#include <getopt.h>
-__dead static void usage(void);
+static void usage(void);
struct option chmod_longopts[] = {
{ "reference", required_argument, 0,