add support for FreeBSD

This commit is contained in:
Damjan Jovanovic
2012-08-02 10:36:16 -06:00
committed by Joel Dice
parent 57e318bbec
commit c1aa0b46b5
11 changed files with 60 additions and 10 deletions

View File

@ -578,6 +578,8 @@ Java_java_lang_System_getProperty(JNIEnv* e, jclass, jstring name,
} else if (strcmp(chars, "os.name") == 0) {
#ifdef __APPLE__
r = e->NewStringUTF("Mac OS X");
#elif defined __FreeBSD__
r = e->NewStringUTF("FreeBSD");
#else
r = e->NewStringUTF("Linux");
#endif

View File

@ -31,6 +31,8 @@
# include <errno.h>
# include <netdb.h>
# include <sys/select.h>
# include <arpa/inet.h>
# include <netinet/in.h>
# include <netinet/ip.h>
# include <netinet/tcp.h>
# include <sys/socket.h>