Skip to content

Commit

Permalink
Fix build on FreeBSD < 13.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdupre committed Dec 25, 2023
1 parent 92dfb03 commit 601c18c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions if_re.c
Original file line number Diff line number Diff line change
Expand Up @@ -3970,6 +3970,10 @@ re_add_sysctls(struct re_softc *sc)
ctx = device_get_sysctl_ctx(sc->dev);
children = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->dev));

#ifndef CTLFLAG_NEEDGIANT
#define CTLFLAG_NEEDGIANT 0
#endif

SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "driver_var",
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, sc, 0,
re_sysctl_driver_variable, "I", "Driver Variables Information");
Expand Down
1 change: 1 addition & 0 deletions if_rereg.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
* $FreeBSD: src/sys/dev/re/if_rereg.h,v 1.14.2.1 2001/07/19 18:33:07 wpaul Exp $
*/

#include <netinet/in.h>
#include <netinet/tcp_lro.h>

/*#define VERSION(_MainVer,_MinorVer) ((_MainVer)*10+(_MinorVer))*/
Expand Down

0 comments on commit 601c18c

Please sign in to comment.