diff --git a/src/sbbs3/services.c b/src/sbbs3/services.c
index 396f58e7f72cf0f944864951a32bba0b5ef6e8e8..7026b6178fa58248feb2d4ea9546dab272eed3e5 100644
--- a/src/sbbs3/services.c
+++ b/src/sbbs3/services.c
@@ -61,7 +61,9 @@
 #include <errno.h>			/* errno */
 
 /* Synchronet-specific headers */
+#ifndef JAVASCRIPT
 #define JAVASCRIPT	/* required to include JS API headers */
+#endif
 #include "sbbs.h"
 #include "services.h"
 #include "ident.h"	/* identify() */