Commit 32f502bf authored by jan.koester's avatar jan.koester
Browse files

corrected header

parent e1bfe182
Loading
Loading
Loading
Loading
+2 −0
Changes for src/eventapi.h: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -28,6 +28,8 @@
#include "socket.h"
#include "connection.h"



#pragma once

struct poll_event;
+0 −1
Changes for src/exception.h: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@
 *******************************************************************************/

#include <string>
#include <mutex>
#include <cstddef>

/*
+1 −0
Changes for src/linux/event.cpp: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <sys/epoll.h>
#include <stdlib.h>
#include <stdint.h>
#include <mutex>

#include "socket.h"
#include "exception.h"
+5 −5
Changes for src/linux/socket.cpp: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -25,6 +25,10 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/

#ifdef _GNU_SOURCE
#undef _GNU_SOURCE
#endif

#include <vector>
#include <cstdio>
#include <cstring>
@@ -35,16 +39,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <sys/socket.h>
#include <unistd.h>
#include <netdb.h>
#include <mutex>
#include <string.h>
#include <pthread.h>

#include "exception.h"
#include "socket.h"

#ifdef _GNU_SOURCE
#undef _GNU_SOURCE
#endif

#define HIDDEN __attribute__ ((visibility ("hidden")))

netplus::socket::socket(){