diff options
Diffstat (limited to 'native/org.eclipse.cdt.native.serial/native_src/serial.c')
-rw-r--r-- | native/org.eclipse.cdt.native.serial/native_src/serial.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/native/org.eclipse.cdt.native.serial/native_src/serial.c b/native/org.eclipse.cdt.native.serial/native_src/serial.c index fdb2cb85392..5cc51a384f3 100644 --- a/native/org.eclipse.cdt.native.serial/native_src/serial.c +++ b/native/org.eclipse.cdt.native.serial/native_src/serial.c @@ -45,6 +45,7 @@ * stage. This method obtains the last error from OS to include in the * IOException */ +#ifndef __APPLE__ #ifndef __MINGW32__ static void closeAndthrowIOException(int fd, JNIEnv *env, const char *msg) { #else @@ -61,6 +62,7 @@ static void closeAndthrowIOException(HANDLE handle, JNIEnv *env, const char *msg jclass cls = (*env)->FindClass(env, "java/io/IOException"); (*env)->ThrowNew(env, cls, buff); } +#endif static void throwIOException(JNIEnv *env, const char *msg) { char buff[256]; |