Moved gsockunx.h from src/unix to include/wx/unix
Added include/wx/unix/gsockunx.h to Makefile.in git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -516,7 +516,8 @@ MSW_HEADERS = \
|
|||||||
msw/xpmhand.h
|
msw/xpmhand.h
|
||||||
|
|
||||||
UNIX_HEADERS = \
|
UNIX_HEADERS = \
|
||||||
unix/execute.h
|
unix/execute.h \
|
||||||
|
unix/gsockunx.h
|
||||||
|
|
||||||
GENERIC_HEADERS = \
|
GENERIC_HEADERS = \
|
||||||
generic/caret.h \
|
generic/caret.h \
|
||||||
|
@@ -43,7 +43,7 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
#include "wx/gsocket.h"
|
#include "wx/gsocket.h"
|
||||||
#include "gsockunx.h"
|
#include "wx/unix/gsockunx.h"
|
||||||
|
|
||||||
#ifndef SOCKLEN_T
|
#ifndef SOCKLEN_T
|
||||||
|
|
||||||
@@ -161,8 +161,6 @@ void GSocket_Shutdown(GSocket *socket)
|
|||||||
|
|
||||||
/* If socket has been created, we shutdown it */
|
/* If socket has been created, we shutdown it */
|
||||||
if (socket->m_fd != -1) {
|
if (socket->m_fd != -1) {
|
||||||
/* Only oriented connection should be shutdowned */
|
|
||||||
if (socket->m_oriented)
|
|
||||||
shutdown(socket->m_fd, 2);
|
shutdown(socket->m_fd, 2);
|
||||||
close(socket->m_fd);
|
close(socket->m_fd);
|
||||||
socket->m_fd = -1;
|
socket->m_fd = -1;
|
||||||
|
Reference in New Issue
Block a user