File: 30_configfile_kfreebsd.patch

package info (click to toggle)
avrp 1.0beta3-8
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 320 kB
  • sloc: ansic: 3,139; makefile: 11; perl: 6
file content (15 lines) | stat: -rw-r--r-- 476 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Fix config file location. Also, add Debian GNU/kFreeBSD support.

--- a/avrp.h	1998-09-28 19:39:16.000000000 +0200
+++ b/avrp.h	2008-11-27 18:39:46.000000000 +0100
@@ -41,8 +41,8 @@
 #define DEFFILENAME "env:avrp.def"
 #endif
 
-#if defined(__linux__) || defined(__FreeBSD__)
-#define DEFFILENAME "/usr/local/etc/avrp.def"
+#if defined(__linux__) || defined(__FreeBSD__) || defined (__GNU__) || defined(__GLIBC__)
+#define DEFFILENAME "/etc/avrp.def"
 #endif
 
 #ifdef _WIN32