summaryrefslogtreecommitdiff
path: root/ham/7plus/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'ham/7plus/patches/patch-ac')
-rw-r--r--ham/7plus/patches/patch-ac49
1 files changed, 49 insertions, 0 deletions
diff --git a/ham/7plus/patches/patch-ac b/ham/7plus/patches/patch-ac
new file mode 100644
index 00000000000..96ede8f71cf
--- /dev/null
+++ b/ham/7plus/patches/patch-ac
@@ -0,0 +1,49 @@
+$NetBSD: patch-ac,v 1.1 2006/01/09 20:02:02 joerg Exp $
+
+--- utils.c.orig 2006-01-09 19:56:59.000000000 +0000
++++ utils.c
+@@ -1591,7 +1591,7 @@ void fnsplit(char *pth, char *dr, char *
+
+ strcpy(tmp,pth);
+
+-#if (defined (__MWERKS__) || defined (__linux__) || defined (__NETBSD__))
++#if (defined (__MWERKS__) || defined (__linux__) || defined (__NETBSD__)) || defined(__DragonFly__)
+ /* Ignore drive on systems that don't have drives. */
+ p = tmp;
+ drv[0] = EOS;
+@@ -1729,7 +1729,7 @@ int strnicmp (const char *s1, const char
+
+ #ifndef _HAVE_GETCH
+
+- #if defined(SYSV) || defined(__EMX__) || defined(__NetBSD__)/* use ioctl() */
++ #if defined(SYSV) || defined(__EMX__) || defined(__NetBSD__) || defined(__DragonFly__) /* use ioctl() */
+ #define _IOCTL_
+ #endif
+
+@@ -1769,7 +1769,7 @@ int strnicmp (const char *s1, const char
+ {
+ first = 0;
+ #ifdef _IOCTL_
+- #ifdef __NetBSD__
++ #if defined(__NetBSD__) || defined(__DragonFly__)
+ (void) ioctl(fd, TIOCGETA, (char *) &sg[OFF]);
+ #else
+ (void) ioctl(fd, TCGETA, (char *) &sg[OFF]);
+@@ -1795,7 +1795,7 @@ int strnicmp (const char *s1, const char
+ }
+
+ #ifdef _IOCTL_
+- #ifdef __NetBSD__
++ #if defined(__NetBSD__) || defined(__DragonFly__)
+ (void) ioctl(fd, TIOCSETAW, (char *) &sg[ON]);
+ #else
+ (void) ioctl(fd, TCSETAW, (char *) &sg[ON]);
+@@ -1807,7 +1807,7 @@ int strnicmp (const char *s1, const char
+ read(fd, &c, 1);
+
+ #ifdef _IOCTL_
+- #ifdef __NetBSD__
++ #if defined(__NetBSD__) || defined(__DragonFly__)
+ (void) ioctl(fd, TIOCSETAW, (char *) &sg[OFF]);
+ #else
+ (void) ioctl(fd, TCSETAW, (char *) &sg[OFF]);