summaryrefslogtreecommitdiff
path: root/ham/dpbox/patches/patch-ap
blob: 616f79bd9234a904f23e068bd72d84faeb2e60c8 (plain)
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
39
40
$NetBSD: patch-ap,v 1.1 2006/01/24 22:27:07 joerg Exp $

--- main.c.orig	2006-01-24 22:13:19.000000000 +0000
+++ main.c
@@ -22,10 +22,13 @@
 #ifdef __NetBSD__
 #undef IFACE_DEBUG
 #endif
+#ifdef __DragonFly__
+#undef IFACE_DEBUG
+#endif
 
 #define MAIN_G
 
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
@@ -2921,6 +2924,11 @@ char *argv[];
           dp_vnr, dp_vnr_sub, dp_date);
 #define __dp_version_done
 #endif
+#ifdef __DragonFly__ 
+  printf("DigiPoint Box v%s%s %s (DragonFly) successfully started\n",
+          dp_vnr, dp_vnr_sub, dp_date);
+#define __dp_version_done
+#endif
 #ifdef __linux__
   printf("DigiPoint Box v%s%s %s (Linux) successfully started\n",
           dp_vnr, dp_vnr_sub, dp_date);
@@ -3082,7 +3090,7 @@ char *argv[];
       exit_proc();
       if (dpbox_debug == 2)
         fclose(error_fp);
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__NetBSD__) || defined(__DragonFly__)
       delete_dirlist();
       unlink(serv_addr.sun_path);
 #endif