Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include net/if.h before net/if_dl.h #2361

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

ryandesign
Copy link
Contributor

Summary

Description

In old versions of macOS, net/if_dl.h neglects to include sys/types.h, which results in build failure:

error: unknown type name 'u_char'; did you mean 'char'?

Including net/if.h first works around the problem because net/if.h includes sys/types.h.

In old versions of macOS, net/if_dl.h neglects to include sys/types.h,
which results in build failure:

error: unknown type name 'u_char'; did you mean 'char'?

Including net/if.h first works around the problem because net/if.h
includes sys/types.h.

Fixes giampaolo#2360
@giampaolo giampaolo merged commit 494d8b8 into giampaolo:master Jan 26, 2024
12 of 14 checks passed
@ryandesign ryandesign deleted the patch-1 branch January 26, 2024 09:08
ddelange added a commit to ddelange/psutil that referenced this pull request Feb 27, 2024
…mpaolo-master

* 'master' of https://github.com/giampaolo/psutil:
  add black opt to make lines more compact
  giampaolo#2366 [Windows]: log debug message when using slower process APIs
  Linux: skip offline cpu cores in cpu_freq (giampaolo#2376)
  fix py2 failure
  update style to latest black ver
  chore: update cibuildwheel on windows (giampaolo#2370)
  use unicode literals u"" instead of u("")
  make install-pip: fix installation on python 2
  more ruff rules
  adapt to new ruff config directives
  update CREDITS + mention @c0m4r for sponsorship (thanks!)
  Include net/if.h before net/if_dl.h (giampaolo#2361)
  pre-release
  fix failing tests
  refac t
ddelange added a commit to ddelange/psutil that referenced this pull request Feb 27, 2024
* giampaolo-master:
  add black opt to make lines more compact
  giampaolo#2366 [Windows]: log debug message when using slower process APIs
  Linux: skip offline cpu cores in cpu_freq (giampaolo#2376)
  fix py2 failure
  update style to latest black ver
  chore: update cibuildwheel on windows (giampaolo#2370)
  use unicode literals u"" instead of u("")
  make install-pip: fix installation on python 2
  more ruff rules
  adapt to new ruff config directives
  update CREDITS + mention @c0m4r for sponsorship (thanks!)
  Include net/if.h before net/if_dl.h (giampaolo#2361)
  pre-release
  fix failing tests
  refac t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[macOS] v. 5.9.7 broken on macOS < 10.13: if_dl.h: error: unknown type name 'u_char'; did you mean 'char'?
2 participants