diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 9d7ab4c7bba8a9956140442771fafe25c545f6df..424d6dabd1150b24cfb976dbae3022afa2f820e0 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -62,6 +62,10 @@ __declspec(dllimport) void __stdcall Sleep(unsigned long dwMilliseconds);
      /* doesn't set errno but that's enough */
 #    define usleep(t)  snooze((bigtime_t)(t))
 #  endif
+#  ifndef SA_RESTART
+#    warning SA_RESTART not implemented; ffserver might misbehave.
+#    define SA_RESTART 0
+#  endif
 #endif
 
 #if defined(CONFIG_OS2)