summaryrefslogtreecommitdiffstats
path: root/usr.bin/readlink
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2009-05-01 10:36:48 +0000
committerchl <chl@openbsd.org>2009-05-01 10:36:48 +0000
commit4abb5f1a4f7282fc08a5b15787e9ff689c2aaf9e (patch)
tree57c16476a152ee19b3deb57a005476cb27a01e50 /usr.bin/readlink
parentuse printf instead of echo for one of the anchor examples - this allows it (diff)
downloadwireguard-openbsd-4abb5f1a4f7282fc08a5b15787e9ff689c2aaf9e.tar.xz
wireguard-openbsd-4abb5f1a4f7282fc08a5b15787e9ff689c2aaf9e.zip
add missing header needed by err()
ok otto@ millert@ gilles@
Diffstat (limited to 'usr.bin/readlink')
-rw-r--r--usr.bin/readlink/readlink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/readlink/readlink.c b/usr.bin/readlink/readlink.c
index db2e6d87a24..83c3a25c12a 100644
--- a/usr.bin/readlink/readlink.c
+++ b/usr.bin/readlink/readlink.c
@@ -1,5 +1,5 @@
/*
- * $OpenBSD: readlink.c,v 1.24 2007/09/10 07:42:26 sobrado Exp $
+ * $OpenBSD: readlink.c,v 1.25 2009/05/01 10:36:48 chl Exp $
*
* Copyright (c) 1997
* Kenneth Stailey (hereinafter referred to as the author)
@@ -27,8 +27,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <limits.h>
+#include <err.h>
#include <errno.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>