Skip to content
Snippets Groups Projects
Commit d018a6a3 authored by an7s's avatar an7s
Browse files

added buffrecv to configure.in

added missing #ifdef CGC  
parent 74a9d1bc
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ AC_PROG_CC ...@@ -7,6 +7,7 @@ AC_PROG_CC
AC_ARG_ENABLE([debugging], [ --enable-debugging enable -g when compiling]) AC_ARG_ENABLE([debugging], [ --enable-debugging enable -g when compiling])
AC_ARG_ENABLE([cgc], [ --enable-cgc enable -DCGC when compiling for CGC binaries]) AC_ARG_ENABLE([cgc], [ --enable-cgc enable -DCGC when compiling for CGC binaries])
AC_ARG_ENABLE([inferfn], [ --enable-inferfn enable -DCGC when compiling for CGC binaries]) AC_ARG_ENABLE([inferfn], [ --enable-inferfn enable -DCGC when compiling for CGC binaries])
AC_ARG_ENABLE([buffrecv], [ --enable-buffrecv enable -DCGC when compiling for CGC binaries])
AC_ARG_ENABLE([libc], [ --enable-libc enable $1 for building ]) AC_ARG_ENABLE([libc], [ --enable-libc enable $1 for building ])
enable_dir() enable_dir()
...@@ -28,7 +29,7 @@ enable_dir() ...@@ -28,7 +29,7 @@ enable_dir()
fi fi
} }
OPTIMIZE="-O3" OPTIMIZE="-O"
if test "$enable_debugging" = yes; then if test "$enable_debugging" = yes; then
OPTIMIZE="-g -DDEBUG" OPTIMIZE="-g -DDEBUG"
fi fi
...@@ -71,6 +72,7 @@ enable_dir rss ...@@ -71,6 +72,7 @@ enable_dir rss
enable_dir hookdynamic enable_dir hookdynamic
enable_dir canaries enable_dir canaries
enable_dir cookbook enable_dir cookbook
enable_dir buffrecv
AC_OUTPUT(Makefile) AC_OUTPUT(Makefile)
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
int close(int fd) int close(int fd)
{ {
#ifndef CGC
syscall(SYS_close,fd); syscall(SYS_close,fd);
#endif
} }
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
int open(char *file, int mode) int open(char *file, int mode)
{ {
#ifndef CGC
syscall(SYS_open,file,mode); syscall(SYS_open,file,mode);
#endif
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment