* create format strings different for solaris
[citadel.git] / citadel / sysdep.c
index d463421b47c122f20d42d60957ff8c1f2aecb920..b5b37a7ddf20ef214b31827a472df47e9fa74a38 100644 (file)
@@ -837,7 +837,7 @@ void start_daemon(int unused) {
                else {
                        fp = fopen(file_pid_file, "w");
                        if (fp != NULL) {
-                               fprintf(fp, "%ld\n", child);
+                               fprintf(fp, ""F_PID_T"\n", child);
                                fclose(fp);
                        }
                        waitpid(current_child, &status, 0);