Skip to content

Instantly share code, notes, and snippets.

@fenrir-naru
Created February 13, 2016 14:16
Show Gist options
  • Save fenrir-naru/5b2c2aa4db1a1a1f20b5 to your computer and use it in GitHub Desktop.
Save fenrir-naru/5b2c2aa4db1a1a1f20b5 to your computer and use it in GitHub Desktop.
Patch of c_icap-0.4.2 and c_icap_modules-0.4.2 for MacOSX
--- c_icap-0.4.2/os/unix/shared_mem.c.orig 2015-08-27 18:01:51.000000000 +0900
+++ c_icap-0.4.2/os/unix/shared_mem.c 2016-02-13 17:46:21.000000000 +0900
@@ -99,6 +99,9 @@ const ci_shared_mem_scheme_t sysv_scheme
#if defined(USE_POSIX_MAPPED_FILES)
+#if defined(__APPLE__)
+#define MAP_ANONYMOUS MAP_ANON
+#endif
void *mmap_shared_mem_create(ci_shared_mem_id_t * id, const char *name, int size)
{
--- c_icap_modules-0.4.2/services/virus_scan/Makefile.in.orig 2016-02-13 23:11:37.000000000 +0900
+++ c_icap_modules-0.4.2/services/virus_scan/Makefile.in 2016-02-13 23:12:12.000000000 +0900
@@ -235,7 +235,7 @@ CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CYGPATH_W = @CYGPATH_W@
DATADIR = @DATADIR@
-DEFS = @DEFS@
+DEFS = @DEFS@ -DHAVE_FD_PASSING=1
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment