summaryrefslogtreecommitdiff
path: root/sysutils/dbus/patches/patch-ad
blob: 6833dd0f8a4ce6c75c2ed83fec805d7603c9e379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ad,v 1.1 2006/02/26 21:42:33 joerg Exp $

--- python/extract.py.orig	2006-02-18 14:40:04.000000000 +0000
+++ python/extract.py
@@ -228,7 +228,10 @@ fd = open(filename)
 for line in fd.readlines():
     if line.startswith('#include'):
         filename = line.split(' ')[1][1:-2]
-        command = "echo '%s'|cpp %s" % (line, cppflags)
+	if sys.platform[:-1] in ("freebsd", "dragonfly"):
+            command = "echo '%s'|cpp -Dlint %s" % (line, cppflags)
+	else:
+            command = "echo '%s'|cpp %s" % (line, cppflags)
         sys.stderr.write('running %s' % (command))
         output = commands.getoutput(command)
         do_buffer(filename, output)