diff -Ncr lpc21isp-1.64.orig/lpc21isp.c lpc21isp-1.64/lpc21isp.c *** lpc21isp-1.64.orig/lpc21isp.c Tue Jan 20 04:34:59 2009 --- lpc21isp-1.64/lpc21isp.c Wed Mar 25 20:36:20 2009 *************** *** 367,373 **** #ifdef __APPLE__ #define NEWTERMIOS_SETBAUDARTE(bps) IspEnvironment->newtio.c_ispeed = IspEnvironment->newtio.c_ospeed = bps; ! #elif __FreeBSD__ if(cfsetspeed(&IspEnvironment->newtio,(speed_t) strtol(IspEnvironment->baud_rate,NULL,10))) { DebugPrintf(1, "baudrate %s not supported\n", IspEnvironment->baud_rate); --- 367,373 ---- #ifdef __APPLE__ #define NEWTERMIOS_SETBAUDARTE(bps) IspEnvironment->newtio.c_ispeed = IspEnvironment->newtio.c_ospeed = bps; ! #elif defined(__FreeBSD__) || defined(__OpenBSD__) if(cfsetspeed(&IspEnvironment->newtio,(speed_t) strtol(IspEnvironment->baud_rate,NULL,10))) { DebugPrintf(1, "baudrate %s not supported\n", IspEnvironment->baud_rate); diff -Ncr lpc21isp-1.64.orig/lpc21isp.h lpc21isp-1.64/lpc21isp.h *** lpc21isp-1.64.orig/lpc21isp.h Tue Jan 20 04:29:24 2009 --- lpc21isp-1.64/lpc21isp.h Wed Mar 25 20:16:24 2009 *************** *** 47,52 **** --- 47,55 ---- #elif defined(__FreeBSD__) #define COMPILE_FOR_LINUX #define COMPILED_FOR "FreeBSD" + #eilf defined(__OpenBSD__) + #define COMPILE_FOR_LINUX + #define COMPILED_FOR "OpenBSD" #else #define COMPILE_FOR_LINUX #define COMPILED_FOR "Linux" *************** *** 101,107 **** --- 104,114 ---- #include #include #if defined (COMPILE_FOR_LINUX) + #if defined(__OpenBSD__) + #include + #else #include + #endif #endif #if defined COMPILE_FOR_LPC21