diff options
author | mkarcher <mkarcher@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2010-02-16 00:49:50 +0000 |
---|---|---|
committer | mkarcher <mkarcher@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2010-02-16 00:49:50 +0000 |
commit | 602ecdf09be486bd8156a21c97f2185f6388b734 (patch) | |
tree | af68fc5ba8a397345deca2fc632c130e0e3ba01e | |
parent | d46cd05af98241fa3ac5234e3d73db0712a69e32 (diff) | |
download | flashrom-602ecdf09be486bd8156a21c97f2185f6388b734.tar.gz |
more NetBSD fixes (w/ patch)
Cast input to tolower() to unsigned char to work around how tolower() is
implemented on NetBSD.
Also, use CPPFLAGS (rather than overriding CFLAGS) for the
NetBSD/DragonFly build example.
Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@905 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | dummyflasher.c | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -68,7 +68,7 @@ To compile on Solaris, use: To compile on NetBSD or DragonFly BSD, use: ln -s /usr/pkg/include/pciutils pci - gmake CFLAGS=-I. LDFLAGS="-L/usr/pkg/lib -Wl,-rpath-link,/usr/pkg/lib" + gmake CPPFLAGS=-I. LDFLAGS="-L/usr/pkg/lib -Wl,-rpath-link,/usr/pkg/lib" To compile and run on Darwin/Mac OS X: diff --git a/dummyflasher.c b/dummyflasher.c index 0f62d16..8ebd695 100644 --- a/dummyflasher.c +++ b/dummyflasher.c @@ -38,7 +38,8 @@ int dummy_init(void) programmer_param = strdup("parallel,lpc,fwh,spi"); /* Convert the parameters to lowercase. */ for (i = 0; programmer_param[i] != '\0'; i++) - programmer_param[i] = (char)tolower(programmer_param[i]); + programmer_param[i] = + (char)tolower((unsigned char)programmer_param[i]); buses_supported = CHIP_BUSTYPE_NONE; if (strstr(programmer_param, "parallel")) { |