Blob Blame History Raw
diff -up ./src/I2CImp.c.p3 ./src/I2CImp.c
--- ./src/I2CImp.c.p3	2004-10-17 16:23:02.000000000 +0200
+++ ./src/I2CImp.c	2008-08-19 16:33:25.000000000 +0200
@@ -86,7 +86,7 @@ JNIEXPORT void JNICALL Java_gnu_io_I2CPo
 	sigaction( SIGIO, NULL, &handler );
 	if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
 #endif /* !__FreeBSD__ */
-#if defined(__linux__) 
+#if defined(DEBUG) && defined(__linux__)
 	/* Lets let people who upgraded kernels know they may have problems */
 	if (uname (&name) == -1)
 	{
@@ -98,7 +98,7 @@ JNIEXPORT void JNICALL Java_gnu_io_I2CPo
 		fprintf(stderr, "\n\n\nRXTX WARNING:  This library was compiled to run with OS release %s and you are currently running OS release %s.  In some cases this can be a problem.  Try recompiling RXTX if you notice strange behavior.  If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release);
 		getchar();
 	}
-#endif /* __linux__ */
+#endif /* DEBUG && __linux__ */
 #endif /* WIN32 */
 }
 
diff -up ./src/RawImp.c.p3 ./src/RawImp.c
--- ./src/RawImp.c.p3	2004-10-16 18:20:35.000000000 +0200
+++ ./src/RawImp.c	2008-08-19 16:33:25.000000000 +0200
@@ -230,7 +230,7 @@ JNIEXPORT void JNICALL Java_gnu_io_RawPo
 	sigaction( SIGIO, NULL, &handler );
 	if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
 #endif /* !__FreeBSD__ */
-#if defined(__linux__) 
+#if defined(DEBUG) && defined(__linux__) 
 	/* Lets let people who upgraded kernels know they may have problems */
 	if (uname (&name) == -1)
 	{
@@ -242,7 +242,7 @@ JNIEXPORT void JNICALL Java_gnu_io_RawPo
 		fprintf(stderr, "\n\n\nRXTX WARNING:  This library was compiled to run with OS release %s and you are currently running OS release %s.  In some cases this can be a problem.  Try recompiling RXTX if you notice strange behavior.  If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release);
 		getchar();
 	}
-#endif /* __linux__ */
+#endif /* DEBUG && __linux__ */
 #endif /* WIN32 */
 }
 
diff -up ./src/RS485Imp.c.p3 ./src/RS485Imp.c
--- ./src/RS485Imp.c.p3	2008-08-19 16:35:10.000000000 +0200
+++ ./src/RS485Imp.c	2008-08-19 16:35:49.000000000 +0200
@@ -86,7 +86,7 @@ JNIEXPORT void JNICALL Java_gnu_io_RS485
 	sigaction( SIGIO, NULL, &handler );
 	if( !handler.sa_handler ) signal( SIGIO, SIG_IGN );
 #endif /* !__FreeBSD__ */
-#if defined(__linux__) 
+#if defined(DEBUG) && defined(__linux__)
 	/* Lets let people who upgraded kernels know they may have problems */
 	if (uname (&name) == -1)
 	{
@@ -98,7 +98,7 @@ JNIEXPORT void JNICALL Java_gnu_io_RS485
 		fprintf(stderr, "\n\n\nRXTX WARNING:  This library was compiled to run with OS release %s and you are currently running OS release %s.  In some cases this can be a problem.  Try recompiling RXTX if you notice strange behavior.  If you just compiled RXTX make sure /usr/include/linux is a symbolic link to the include files that came with the kernel source and not an older copy.\n\n\npress enter to continue\n",UTS_RELEASE,name.release);
 		getchar();
 	}
-#endif /* __linux__ */
+#endif /* DEBUG && __linux__ */
 #endif /* WIN32 */
 }