Permalink
Browse files

OpenBSD is not defined (unless sys/param.h is included) so simply use…

… the gcc

builtin define for it.

From:	"Federico G. Schwindt" <fgsch@lodoss.net>
  • Loading branch information...
1 parent 5582b35 commit 3ed75f50638a9461f443337d61c0b4c9dcd3f766 @bsdphk bsdphk committed Mar 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/varnishd/mgt/mgt_shmem.c
View
2 bin/varnishd/mgt/mgt_shmem.c
@@ -247,7 +247,7 @@ mgt_SHM_Create(void)
exit (-1);
}
-#ifdef OpenBSD
+#ifdef __OpenBSD__
/* Commit changes, for OS's without coherent VM/buf */
AZ(msync(p, getpagesize(), MS_SYNC));
#endif

0 comments on commit 3ed75f5

Please sign in to comment.