diff options
Diffstat (limited to 'sysutils/aimage/files/patch-src_imager.cpp')
-rw-r--r-- | sysutils/aimage/files/patch-src_imager.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sysutils/aimage/files/patch-src_imager.cpp b/sysutils/aimage/files/patch-src_imager.cpp new file mode 100644 index 000000000000..f180244cbf4f --- /dev/null +++ b/sysutils/aimage/files/patch-src_imager.cpp @@ -0,0 +1,15 @@ +imager.cpp:857:8: error: value of type '__bind<int &, sockaddr *, unsigned long>' is not contextually convertible to 'bool' + if(bind(sock,(sockaddr *)&local,sizeof(local))) err(1,"bind"); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- src/imager.cpp.orig 2018-06-05 06:55:20 UTC ++++ src/imager.cpp +@@ -854,7 +854,7 @@ int imager::socket_listen(int port) + #endif + local.sin_family = AF_INET; + local.sin_port = htons(port); // listen on requested port. +- if(bind(sock,(sockaddr *)&local,sizeof(local))) err(1,"bind"); ++ if(::bind(sock,(sockaddr *)&local,sizeof(local))) err(1,"bind"); + if(listen(sock,0)) err(1,"listen"); // listen, and only accept one + printf("Listening for connection on port %d...\n",port); + in = accept(sock,(sockaddr *)&remote,&rsize); |