summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2024-05-21 18:57:13 +0200
committerGravatar default2024-05-21 18:57:13 +0200
commitcdfaf6dc57a03503cec46cad5fbfd6fec45b0f52 (patch)
tree17f477dfb3671185930a721648979705551537c3 /httpd.c
parentAdded const everywhere. (diff)
downloadpenes-snac2-cdfaf6dc57a03503cec46cad5fbfd6fec45b0f52.tar.gz
penes-snac2-cdfaf6dc57a03503cec46cad5fbfd6fec45b0f52.tar.xz
penes-snac2-cdfaf6dc57a03503cec46cad5fbfd6fec45b0f52.zip
New compilation variable WITHOUT_SHM, to disable shared memory functions.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index d63fa0f..993aa1c 100644
--- a/httpd.c
+++ b/httpd.c
@@ -653,6 +653,29 @@ void term_handler(int s)
653} 653}
654 654
655 655
656#ifdef WITHOUT_SHM
657
658/* dummy versions */
659
660int shm_open(const char *name, int flags, mode_t mode)
661{
662 (void)name;
663 (void)flags;
664 (void)mode;
665
666 errno = ENOTSUP;
667 return -1;
668}
669
670int shm_unlink(const char *name)
671{
672 (void)name;
673 return -1;
674}
675
676
677#endif
678
656srv_state *srv_state_op(xs_str **fname, int op) 679srv_state *srv_state_op(xs_str **fname, int op)
657/* opens or deletes the shared memory object */ 680/* opens or deletes the shared memory object */
658{ 681{