Changeset 905


Ignore:
Timestamp:
Feb 16, 2010 1:49:50 AM (3 years ago)
Author:
mkarcher
Message:

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@…>
Acked-by: Michael Karcher <flashrom@…>

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/README

    r838 r905  
    6969 
    7070 ln -s /usr/pkg/include/pciutils pci 
    71  gmake CFLAGS=-I. LDFLAGS="-L/usr/pkg/lib -Wl,-rpath-link,/usr/pkg/lib" 
     71 gmake CPPFLAGS=-I. LDFLAGS="-L/usr/pkg/lib -Wl,-rpath-link,/usr/pkg/lib" 
    7272 
    7373To compile and run on Darwin/Mac OS X: 
  • trunk/dummyflasher.c

    r842 r905  
    3939        /* Convert the parameters to lowercase. */ 
    4040        for (i = 0; programmer_param[i] != '\0'; i++) 
    41                 programmer_param[i] = (char)tolower(programmer_param[i]); 
     41                programmer_param[i] = 
     42                    (char)tolower((unsigned char)programmer_param[i]); 
    4243 
    4344        buses_supported = CHIP_BUSTYPE_NONE; 
Note: See TracChangeset for help on using the changeset viewer.