- fix from upstream that allows libsm to compile against FreeBSD 13

Submitted by:	Gregory Shapiro
Obtained from:	https://svnweb.freebsd.org/changeset/base/363226
This commit is contained in:
Dirk Meyer 2020-07-16 20:38:40 +00:00
parent ccea878aff
commit 967ba89df9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=542388

View File

@ -0,0 +1,26 @@
--- libsm/notify.c.orig 2020-05-19 19:54:32 UTC
+++ libsm/notify.c
@@ -10,11 +10,6 @@
#include <sm/gen.h>
-#include <sm/conf.h> /* FDSET_CAST */
-#include <sm/fdset.h>
-#include <sm/assert.h>
-#include <sm/notify.h>
-
#include <sys/types.h>
#include <signal.h>
#include <stdio.h>
@@ -24,6 +19,11 @@
#include <errno.h>
#include <fcntl.h>
#include <string.h> /* for memset() */
+
+#include <sm/conf.h> /* FDSET_CAST */
+#include <sm/fdset.h>
+#include <sm/assert.h>
+#include <sm/notify.h>
#if SM_NOTIFY_DEBUG
#define SM_DBG(p) fprintf p