aboutsummaryrefslogtreecommitdiff
path: root/net/slurm
diff options
context:
space:
mode:
authorMichael Landin <mich@FreeBSD.org>2014-05-27 10:15:28 +0000
committerMichael Landin <mich@FreeBSD.org>2014-05-27 10:15:28 +0000
commitbf8eb49b191c36f4bf1be41800a9ddd21496c7a0 (patch)
tree2d8033466921aad92707dd29dfe07d7b92d47703 /net/slurm
parent155bad70fd5e1d80c34958f23f64cf42eaaaab2a (diff)
downloadports-bf8eb49b191c36f4bf1be41800a9ddd21496c7a0.tar.gz
ports-bf8eb49b191c36f4bf1be41800a9ddd21496c7a0.zip
Notes
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);