pkgsrc-wip/ncc/patches/patch-aa
Thomas Klausner 442a6e86bd Initial import of ncc:
ncc is a compiler that produces program analysis information. ncc
is a decent replacement of cflow and cscope able to analyse any
program using the gcc compiler. The program also incliudes a
graphical call-graph navigator and source browser which is extremely
practical for hacking and comprehending large projects.

Does someone find this useful?
2004-12-27 14:26:58 +00:00

21 lines
541 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2004/12/27 14:26:58 thomasklausner Exp $
--- config.h.orig 2004-12-10 21:24:06.000000000 +0100
+++ config.h
@@ -1,7 +1,7 @@
#ifdef __GCC__
#define alloca __builtin_alloca
#else
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <stdlib.h>
#else
#include <alloca.h>
@@ -12,7 +12,6 @@
#define GNU_VIOLATIONS
#define LABEL_VALUES
#define OUTPUT_EXT ".nccout"
-#define NOGNU "/usr/include/nognu"
#define NCC_INFILE_KEY "ncc-key"
#define FAKE_VARIABLE_ARRAYS
#define NCC_ISOC99