freebsd-ports/sysutils/wmhm/files/patch-ac
Tilman Keskinoz 134d97e1fd Mark IGNORE on amd64 5.x and use machine/speaker.h on 5.x,
dev/speaker/speaker.h was not MFCt to 5.x
2007-03-24 13:39:18 +00:00

21 lines
457 B
Text

--- operations.c.orig Sun Jul 22 07:00:55 2001
+++ operations.c Sat Mar 24 14:29:26 2007
@@ -39,12 +39,16 @@
#include <unistd.h>
#include <math.h>
#include <machine/cpufunc.h>
+#include <osreldate.h>
+#if __FreeBSD_version >= 601000
+#include <dev/speaker/speaker.h>
+#else
#include <machine/speaker.h>
+#endif
#ifdef HAVE_SMBUS
-#include <machine/smb.h>
+#include <dev/smbus/smb.h>
#endif
-#include "machine/speaker.h"
#include "operations.h"