Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2012 11:36:32 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r303075 - head/emulators/dtcyber/files
Message-ID:  <201208241136.q7OBaWkG029301@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Aug 24 11:36:32 2012
New Revision: 303075
URL: http://svn.freebsd.org/changeset/ports/303075

Log:
  Fix build with clang

Added:
  head/emulators/dtcyber/files/patch-mux6676.c   (contents, props changed)

Added: head/emulators/dtcyber/files/patch-mux6676.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/dtcyber/files/patch-mux6676.c	Fri Aug 24 11:36:32 2012	(r303075)
@@ -0,0 +1,36 @@
+--- ./mux6676.c.orig	2012-08-24 13:31:54.621914000 +0200
++++ ./mux6676.c	2012-08-24 13:34:30.246915776 +0200
+@@ -424,7 +424,11 @@
+     if (listenFd < 0)
+         {
+         printf("Can't create socket\n");
++#if defined(_WIN32)
+         return;
++#else
++        return (NULL);
++#endif
+         }
+ 
+     memset(&server, 0, sizeof(server));
+@@ -435,13 +439,21 @@
+     if (bind(listenFd, (struct sockaddr *)&server, sizeof(server)) < 0)
+         {
+         printf("Can't bind to socket\n");
++#if defined(_WIN32)
+         return;
++#else
++        return (NULL);
++#endif
+         }
+ 
+     if (listen(listenFd, 5) < 0)
+         {
+         printf("Can't listen\n");
++#if defined(_WIN32)
+         return;
++#else
++        return (NULL);
++#endif
+         }
+ 
+     while (1)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208241136.q7OBaWkG029301>