pkgsrc/editors/tweak/patches/patch-rcfile.c
wiz 83ab066ea0 Import tweak-3.01 as editors/tweak.
tweak is a hex editor. It allows you to edit a file at very low
level, letting you see the full and exact binary contents of the
file. It can be useful for modifying binary files such as executables,
editing disk or CD images, debugging programs that generate binary
file formats incorrectly, and many other things.

Unlike simpler hex editors, tweak possesses a fully functional
insert mode. This is not useful when editing many of the types of
file described above, but can be useful in other situations. Also,
an insert mode makes it easy to use tweak to construct new files
from scratch.
2013-01-08 10:16:43 +00:00

20 lines
452 B
C

$NetBSD: patch-rcfile.c,v 1.1 2013/01/08 10:16:43 wiz Exp $
At least NetBSD doesn't define unix.
--- rcfile.c.orig 2006-05-18 08:27:43.000000000 +0000
+++ rcfile.c
@@ -5,10 +5,10 @@
#include <string.h>
#include <ctype.h>
-#if defined(unix) && !defined(GO32)
-#define RCNAME ".tweakrc"
-#elif defined(MSDOS)
+#if defined(MSDOS) || defined(GO32)
#define RCNAME "tweak.rc"
+#else
+#define RCNAME ".tweakrc"
#endif
static char *default_rc[] = {