[Spread-cvs] commit: r686 - trunk/daemon
jschultz at spread.org
jschultz at spread.org
Fri Jan 24 16:09:16 EST 2014
Author: jschultz
Date: 2014-01-24 16:09:16 -0500 (Fri, 24 Jan 2014)
New Revision: 686
Modified:
trunk/daemon/arch.h
trunk/daemon/config_parse.y
Log:
Another attempt at suppressing windows build warnings
Modified: trunk/daemon/arch.h
===================================================================
--- trunk/daemon/arch.h 2014-01-24 20:57:17 UTC (rev 685)
+++ trunk/daemon/arch.h 2014-01-24 21:09:16 UTC (rev 686)
@@ -139,6 +139,8 @@
#define MAXPATHLEN _MAX_PATH
#define snprintf _snprintf
#define alloca _alloca
+#define strdup _strdup
+#define fileno _fileno
/* Sockets are not file descriptors on windows so they need a special close function. */
#define close closesocket
/* Windows defines a default size of 64. However, the size of fd_set array for select
Modified: trunk/daemon/config_parse.y
===================================================================
--- trunk/daemon/config_parse.y 2014-01-24 20:57:17 UTC (rev 685)
+++ trunk/daemon/config_parse.y 2014-01-24 21:09:16 UTC (rev 686)
@@ -60,11 +60,6 @@
#include "conf_body.h"
#include "acm.h"
-#ifdef ARCH_PC_WIN95
-# define strdup _strdup
-# define fileno _fileno
-#endif
-
int line_num, semantic_errors;
extern char *yytext;
extern int yyerror(char *str);
More information about the Spread-cvs
mailing list