--- smtpd/smtpd.c	2015-10-02 01:46:21.000000000 +0200
+++ smtpd/smtpd.c	2015-10-02 08:55:09.020322076 +0200
@@ -79,6 +79,14 @@
 #include "log.h"
 #include "ssl.h"
 
+#if !defined(WAIT_MYPGRP)
+#define	WAIT_MYPGRP	0
+#endif
+
+#if !defined(S_ISVTX)
+#define	S_ISVTX	01000
+#endif
+
 extern char *__progname;
 
 static void parent_imsg(struct mproc *, struct imsg *);
