aboutsummaryrefslogtreecommitdiff
path: root/net/slurm
diff options
context:
space:
mode:
Diffstat (limited to 'net/slurm')
-rw-r--r--net/slurm/files/patch-src_if__media.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/slurm/files/patch-src_if__media.c b/net/slurm/files/patch-src_if__media.c
new file mode 100644
index 000000000000..29790c855112
--- /dev/null
+++ b/net/slurm/files/patch-src_if__media.c
@@ -0,0 +1,19 @@
+
+$FreeBSD$
+
+--- src/if_media.c.orig
++++ src/if_media.c
+@@ -95,8 +95,13 @@
+ *
+ */
+
++#if __FreeBSD__ >= 2
++ type = IFM_TYPE(ifmr.ifm_active);
++ physical = IFM_SUBTYPE(ifmr.ifm_active);
++#else
+ type = ifmr.ifm_active & 0xf0;
+ physical = ifmr.ifm_active & 0x0f;
++#endif
+
+ #ifdef MEDIADEBUG
+ printf(" all: %6d\n", ifmr.ifm_current);