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

os_types.h: Properly define types on macOS #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fgiancane8
Copy link

@fgiancane8 fgiancane8 commented Dec 31, 2020

Hello!

I was trying to build ogg vorbis flac opus and sndfile libraries for macOS. Unfortunately, with more recent builds of the macOS operating systems, it seemed that some includes were missing.

Digging deeper into the problem, I found that actually the culprit was os_types.h, not including <stdint.h>.
Adding the include fixed the issue.

ogg was built using cmake on a Big Sur macOS and latest XCode tools.

For more recent macOS builds, <sys/types.h> is not enought to correctly
define aliased types.

Adding <stdint.h> to include list fixes the issue, and makes building
other libraries (i.e. vorbis) for macOS again.

Signed-off-by: Francesco Giancane <francescogiancane8@gmail.com>
sezero pushed a commit to sezero/ogg that referenced this pull request Jun 20, 2021
For more recent macOS builds, <sys/types.h> is not enought to correctly
define aliased types.

Adding <stdint.h> to include list fixes the issue, and makes building
other libraries (i.e. vorbis) for macOS again.

Signed-off-by: Francesco Giancane <francescogiancane8@gmail.com>

xiph#73
sezero pushed a commit to sezero/ogg that referenced this pull request Nov 12, 2021
For more recent macOS builds, <sys/types.h> is not enought to correctly
define aliased types.

Adding <stdint.h> to include list fixes the issue, and makes building
other libraries (i.e. vorbis) for macOS again.

Signed-off-by: Francesco Giancane <francescogiancane8@gmail.com>

xiph#73
sezero pushed a commit to sezero/ogg that referenced this pull request Oct 12, 2022
For more recent macOS builds, <sys/types.h> is not enought to correctly
define aliased types.

Adding <stdint.h> to include list fixes the issue, and makes building
other libraries (i.e. vorbis) for macOS again.

Signed-off-by: Francesco Giancane <francescogiancane8@gmail.com>

xiph#73
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.

1 participant