Better define GATEWAY in opt_gateway.h instead of the Makefile so

UPDATE builds don't go all coocoo.
This commit is contained in:
pooka 2009-02-03 00:33:48 +00:00
parent 7e7d6e9069
commit ead3fc22d6
3 changed files with 4 additions and 5 deletions

View File

@ -1,3 +0,0 @@
/* $NetBSD: opt_gateway.h,v 1.1 2008/10/06 00:27:06 pooka Exp $ */
/* dummy */

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.2 2009/02/01 17:05:26 pooka Exp $ # $NetBSD: Makefile.inc,v 1.3 2009/02/03 00:33:48 pooka Exp $
# #
.PATH: ${.CURDIR}/../../../../netinet .PATH: ${.CURDIR}/../../../../netinet
@ -20,7 +20,6 @@ SRCS+= udp_usrreq.c
CFLAGS+= -Wno-pointer-sign CFLAGS+= -Wno-pointer-sign
CPPFLAGS+= -I${.CURDIR}/opt -I${.CURDIR}/../libnet/opt CPPFLAGS+= -I${.CURDIR}/opt -I${.CURDIR}/../libnet/opt
CPPFLAGS+= -DGATEWAY
# TCP debugging # TCP debugging
#SRCS+= tcp_debug.c #SRCS+= tcp_debug.c

View File

@ -0,0 +1,3 @@
/* $NetBSD: opt_gateway.h,v 1.1 2009/02/03 00:33:48 pooka Exp $ */
#define GATEWAY