From 1a44ef2735767368f43dcc404fa829d52676ef2d Mon Sep 17 00:00:00 2001 From: ryoon Date: Fri, 26 Jul 2013 10:21:41 +0000 Subject: Fix build under GNU/kFreeBSD. --- net/libfetch/files/http.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'net/libfetch') diff --git a/net/libfetch/files/http.c b/net/libfetch/files/http.c index a37efb53f75..481abced6ba 100644 --- a/net/libfetch/files/http.c +++ b/net/libfetch/files/http.c @@ -1,4 +1,4 @@ -/* $NetBSD: http.c,v 1.32 2012/04/07 15:27:21 joerg Exp $ */ +/* $NetBSD: http.c,v 1.33 2013/07/26 10:21:41 ryoon Exp $ */ /*- * Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav * Copyright (c) 2003 Thomas Klausner @@ -63,8 +63,12 @@ * SUCH DAMAGE. */ -#if defined(__linux__) || defined(__MINT__) +#if defined(__linux__) || defined(__MINT__) || defined(__FreeBSD_kernel__) /* Keep this down to Linux or MiNT, it can create surprises elsewhere. */ +/* + __FreeBSD_kernel__ is defined for GNU/kFreeBSD. + See http://glibc-bsd.alioth.debian.org/porting/PORTING . +*/ #define _GNU_SOURCE #endif -- cgit v1.2.3