diff options
author | bapt <bapt@FreeBSD.org> | 2012-08-24 19:36:32 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-08-24 19:36:32 +0800 |
commit | e70dbbf245ed82e57ba085965fae690d3c7a0cda (patch) | |
tree | 09973baba456661b24f1aa86fc47edc4655381ab /emulators | |
parent | f7d11ef7a6d962aaf4fb3c0185a40048792280c8 (diff) | |
download | freebsd-ports-gnome-e70dbbf245ed82e57ba085965fae690d3c7a0cda.tar.gz freebsd-ports-gnome-e70dbbf245ed82e57ba085965fae690d3c7a0cda.tar.zst freebsd-ports-gnome-e70dbbf245ed82e57ba085965fae690d3c7a0cda.zip |
Fix build with clang
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/dtcyber/files/patch-mux6676.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/emulators/dtcyber/files/patch-mux6676.c b/emulators/dtcyber/files/patch-mux6676.c new file mode 100644 index 000000000000..ac08b8352b46 --- /dev/null +++ b/emulators/dtcyber/files/patch-mux6676.c @@ -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) |