On Sat, Dec 31, 2011 at 04:19:41PM +0100, Gonéri Le Bouder wrote:
This additional patch will be required too and is enough to keep the -Werror on
kFreeBSD.
Best regards,
Gonéri
>From 36ffb8b9d426f68267e9f1fabe41f3bd8d5dcb46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= <[email protected]>
Date: Sat, 31 Dec 2011 15:33:42 +0100
Subject: [PATCH] drop the / from the OSNAME
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
on GNU kFreeBSD, uname -s returns "GNU/kFreeBSD", the / is not
accepted a macro and the build fails with -Werror
../../config/config.h:9:15: error: missing whitespace after the macro name [-Werror]
Signed-off-by: Gonéri Le Bouder <[email protected]>
---
config/configure.inc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/config/configure.inc b/config/configure.inc
index 2bafea0..0a1b4c0 100644
--- a/config/configure.inc
+++ b/config/configure.inc
@@ -653,7 +653,7 @@ EOF
AC_PROG_CPP
AC_PROG_INSTALL
- ac_os=`uname -s | sed 's/[-_].*//'`
+ ac_os=`uname -s | sed 's/[-_].*//' | sed 's,/,,'`
_os=`echo $ac_os | tr '[a-z]' '[A-Z]'`
AC_DEFINE OS_$_os 1
eval OS_${_os}=1
--
1.7.7.3