summaryrefslogtreecommitdiff
path: root/debian/patches/01_netbsd_imake.c_fixes.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/01_netbsd_imake.c_fixes.diff')
-rw-r--r--debian/patches/01_netbsd_imake.c_fixes.diff38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/01_netbsd_imake.c_fixes.diff b/debian/patches/01_netbsd_imake.c_fixes.diff
new file mode 100644
index 0000000..40e9be9
--- /dev/null
+++ b/debian/patches/01_netbsd_imake.c_fixes.diff
@@ -0,0 +1,38 @@
+$Id: 841_netbsd_imake.c_fixes.diff 689 2005-10-19 22:11:30Z dnusinow $
+
+Patch to imake.c for Debian/NetBSD support by Joel Baker
+<lucifer@lightbearer.com>.
+
+Index: imake/imake.c
+===================================================================
+--- imake/imake.c.orig 2006-05-29 22:37:55.000000000 -0400
++++ imake/imake.c 2006-05-29 22:44:50.000000000 -0400
+@@ -1087,6 +1087,10 @@
+ fprintf (inFile, "%s\n", "#define LinuxWare 11");
+ fprintf (inFile, "%s\n", "#define LinuxYggdrasil 12");
+
++ fprintf (inFile, "%s\n", "#define NetBSDUnknown 0");
++ fprintf (inFile, "%s\n", "#define NetBSDNative 1");
++ fprintf (inFile, "%s\n", "#define NetBSDDebian 2");
++
+ #ifdef CROSSCOMPILE
+ if (CrossCompiling) {
+ fprintf (inFile, "%s\n",
+@@ -1108,6 +1112,8 @@
+ if (lstat (debian, &sb) == 0) {
+ fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxDebian");
+ fprintf (inFile, "%s\n", "#define DefaultLinuxDistName Debian");
++ fprintf (inFile, "%s\n", "#define DefaultNetBSDDistribution NetBSDDebian");
++ fprintf (inFile, "%s\n", "#define DefaultNetBSDDistName Debian");
+ /* You could also try to get the version of the Debian distrib by looking
+ * at the content of /etc/debian_version */
+ return;
+@@ -1116,6 +1122,8 @@
+
+ fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxUnknown");
+ fprintf (inFile, "%s\n", "#define DefaultLinuxDistName Unknown");
++ fprintf (inFile, "%s\n", "#define DefaultNetBSDDistribution NetBSDUnknown");
++ fprintf (inFile, "%s\n", "#define DefaultNetBSDDistName Unknown");
+ /* would like to know what version of the distribution it is */
+ }
+