Add __OpenBSD__ where applicable.

This commit is contained in:
Jasper Lievisse Adriaanse 2010-12-06 12:23:59 +13:00 committed by Daniel Beer
parent b8d461b8ba
commit 810c2b7c93
4 changed files with 6 additions and 3 deletions

View File

@ -45,3 +45,6 @@ James Laird <james.laird@nicta.com.au>:
Stefan Mahr <Stefan.Mahr@sphairon.com>: Stefan Mahr <Stefan.Mahr@sphairon.com>:
* Initial support, testing and analysis for Olimex * Initial support, testing and analysis for Olimex
MSP430-JTAG-ISO. MSP430-JTAG-ISO.
Jasper Lievisse Adriaanse <jasper@humppa.nl>:
* Ported to OpenBSD.

2
bsl.c
View File

@ -31,7 +31,7 @@
#include "output.h" #include "output.h"
#include "fet_error.h" #include "fet_error.h"
#ifdef __APPLE__ #if defined(__APPLE__) || defined(__OpenBSD__)
#define B460800 460800 #define B460800 460800
#endif #endif

View File

@ -19,7 +19,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#ifdef __APPLE__ #if defined(__APPLE__) || defined(__OpenBSD__)
#include <libelf.h> #include <libelf.h>
#else #else
#include <elf.h> #include <elf.h>

2
uif.c
View File

@ -36,7 +36,7 @@
#include "util.h" #include "util.h"
#include "output.h" #include "output.h"
#ifdef __APPLE__ #if defined(__APPLE__) || defined(__OpenBSD__)
#define B460800 460800 #define B460800 460800
#define B500000 500000 #define B500000 500000
#endif #endif