1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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: a/imake/imake.c
===================================================================
--- a/imake/imake.c.orig 2006-05-29 22:37:55.000000000 -0400
+++ b/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 */
}
|