]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Fix compilation on older platforms 5/head
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>
Mon, 18 Sep 2023 18:06:35 +0000 (14:06 -0400)
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>
Mon, 18 Sep 2023 18:06:35 +0000 (14:06 -0400)
When attempting to compile on older platforms (e.g. CentOS 7), there is
a failure due to the wrong stat.h being included via dependencies. This
makes sure that it finds sys/stat.h first.

src/send_help.c

index c9e3fd59ce5710470f62027f52bf0345d9c2c0bf..cf47ccf5a4b642d982b8ef6516f40e4e358509c6 100644 (file)
@@ -21,6 +21,7 @@
  * IN THE SOFTWARE.
  */
 
+#include <sys/stat.h>
 #include <unistd.h>
 
 #include "mlmmj.h"