[Pcsclite-cvs-commit] r4465 - in /trunk/PCSC/src: sys_generic.h sys_unix.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Oct 8 12:41:36 UTC 2009


Author: rousseau
Date: Thu Oct  8 12:41:36 2009
New Revision: 4465

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4465
Log:
Define SYS_Fork() only if used (if HAVE_DAEMON is not set)

Modified:
    trunk/PCSC/src/sys_generic.h
    trunk/PCSC/src/sys_unix.c

Modified: trunk/PCSC/src/sys_generic.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/sys_generic.h?rev=4465&op=diff
==============================================================================
--- trunk/PCSC/src/sys_generic.h (original)
+++ trunk/PCSC/src/sys_generic.h Thu Oct  8 12:41:36 2009
@@ -41,8 +41,6 @@
 
 	int SYS_WriteFile(int, const char *, int);
 
-	int SYS_Fork(void);
-
 	int SYS_Daemon(int, int);
 
 	int SYS_Stat(const char *pcFile, /*@out@*/ struct stat *psStatus);

Modified: trunk/PCSC/src/sys_unix.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/sys_unix.c?rev=4465&op=diff
==============================================================================
--- trunk/PCSC/src/sys_unix.c (original)
+++ trunk/PCSC/src/sys_unix.c Thu Oct  8 12:41:36 2009
@@ -147,10 +147,12 @@
 	return write(iHandle, pcBuffer, iLength);
 }
 
-INTERNAL int SYS_Fork(void)
+#ifndef HAVE_DAEMON
+static INTERNAL int SYS_Fork(void)
 {
 	return fork();
 }
+#endif
 
 /**
  * @brief put the process to run in the background.




More information about the Pcsclite-cvs-commit mailing list