Almost there
authorAlan T. DeKok <aland@freeradius.org>
Wed, 19 Aug 2015 10:58:33 +0000 (06:58 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 19 Aug 2015 10:58:33 +0000 (06:58 -0400)
src/tests/map/map_unit.c

index eb01f9b..c9bd4d1 100644 (file)
@@ -43,6 +43,18 @@ extern log_lvl_t rad_debug_lvl;
 
 /* Linker hacks */
 
+#ifdef HAVE_PTHREAD_H
+pid_t rad_fork(void)
+{
+       return fork();
+}
+
+pid_t rad_waitpid(pid_t pid, int *status)
+{
+       return waitpid(pid, status, 0);
+}
+#endif
+
 rlm_rcode_t indexed_modcall(UNUSED rlm_components_t comp, UNUSED int idx, UNUSED REQUEST *request)
 {
        return RLM_MODULE_OK;