summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/common.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-01-03 05:33:48 +0000
committermillert <millert@openbsd.org>1999-01-03 05:33:48 +0000
commit8b6f9cfe06b21c47fdd4ba710555cf87af18db99 (patch)
treea9a91ae313cce6dbd11f8ae326b818ee435c7173 /usr.bin/patch/common.h
parentback out last change, other parts of patch rely on basename() returning a ptr to a part of name, not a new string (diff)
downloadwireguard-openbsd-8b6f9cfe06b21c47fdd4ba710555cf87af18db99.tar.xz
wireguard-openbsd-8b6f9cfe06b21c47fdd4ba710555cf87af18db99.zip
Use libc basename(3) and dirname(3) instead of defining our own. Also clean up some nasty assumptions that basename() returns a pointer that lies within its argument
Diffstat (limited to 'usr.bin/patch/common.h')
-rw-r--r--usr.bin/patch/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/patch/common.h b/usr.bin/patch/common.h
index 8a0203c2df0..dd1b812fc8a 100644
--- a/usr.bin/patch/common.h
+++ b/usr.bin/patch/common.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.h,v 1.9 1997/09/22 05:45:26 millert Exp $ */
+/* $OpenBSD: common.h,v 1.10 1999/01/03 05:33:48 millert Exp $ */
#define DEBUGGING
@@ -36,6 +36,7 @@
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
+#include <libgen.h>
#undef malloc
#undef realloc