Skip to content

Commit

Permalink
fix compile problem
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed Mar 14, 2017
1 parent 5bf50a1 commit 0111fa0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/includeobfs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "obfs/obfs.c"
2 changes: 1 addition & 1 deletion src/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ev_tstamp last = 0;
char *prefix;
#endif

#include "obfs.c" // I don't want to modify makefile
#include "includeobfs.h" // I don't want to modify makefile

static int acl = 0;
static int mode = TCP_ONLY;
Expand Down
2 changes: 1 addition & 1 deletion src/local.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <libcork/ds.h>

#include "encrypt.h"
#include "obfs.h"
#include "obfs/obfs.h"
#include "jconf.h"
#include "protocol.h"

Expand Down
2 changes: 1 addition & 1 deletion src/redir.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
#define IP6T_SO_ORIGINAL_DST 80
#endif

#include "obfs.c" // I don't want to modify makefile
#include "includeobfs.h" // I don't want to modify makefile

static void accept_cb(EV_P_ ev_io *w, int revents);
static void server_recv_cb(EV_P_ ev_io *w, int revents);
Expand Down
2 changes: 1 addition & 1 deletion src/redir.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <ev.h>
#include "encrypt.h"
#include "obfs.h"
#include "obfs/obfs.h"
#include "jconf.h"

typedef struct listen_ctx {
Expand Down
2 changes: 1 addition & 1 deletion src/tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
#define BUF_SIZE 2048
#endif

#include "obfs.c" // I don't want to modify makefile
#include "includeobfs.h" // I don't want to modify makefile

static void accept_cb(EV_P_ ev_io *w, int revents);
static void server_recv_cb(EV_P_ ev_io *w, int revents);
Expand Down
2 changes: 1 addition & 1 deletion src/tunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <ev.h>
#include "encrypt.h"
#include "obfs.h"
#include "obfs/obfs.h"
#include "jconf.h"

#include "common.h"
Expand Down
2 changes: 1 addition & 1 deletion src/udprelay.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include "encrypt.h"
#include "jconf.h"
#include "obfs.h"
#include "obfs/obfs.h"

#ifdef MODULE_REMOTE
#include "resolv.h"
Expand Down

0 comments on commit 0111fa0

Please sign in to comment.