along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: tincd.c,v 1.10.4.77 2003/07/28 22:06:09 guus Exp $
+ $Id: tincd.c,v 1.10.4.79 2003/07/30 11:50:45 guus Exp $
*/
#include "system.h"
#include <lzo1x.h>
+#include <getopt.h>
+
#include "conf.h"
#include "logger.h"
#include "net.h"
{NULL, 0, NULL, 0}
};
+#ifdef HAVE_MINGW
+static struct WSAData wsa_state;
+#endif
+
static void usage(bool status)
{
if(status)
exit(1);
}
+#ifdef HAVE_MINGW
+ if(WSAStartup(MAKEWORD(2, 2), &wsa_state)) {
+ logger(LOG_ERR, _("System call `%s' failed: %s"), "WSAStartup", strerror(errno));
+ exit(1);
+ }
+#endif
+
if(!detach())
exit(1);