Skip to content

Add ifndef guards for _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE#2444

Merged
Cyan4973 merged 1 commit intofacebook:devfrom
indygreg:dict-ifndef-guards
Dec 28, 2020
Merged

Add ifndef guards for _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE#2444
Cyan4973 merged 1 commit intofacebook:devfrom
indygreg:dict-ifndef-guards

Conversation

@indygreg
Copy link
Contributor

This ensures the symbols aren't redefined, which would result in a compiler
error.

I was getting redefined symbols for _LARGEFILE64_SOURCE when building for
32-bit x86 Linux on an older CentOS release in a CI environment. With this
change, I'm able to compile the single file library in this environment.

Closes #2443.

This ensures the symbols aren't redefined, which would result in a compiler
error.

I was getting redefined symbols for _LARGEFILE64_SOURCE when building for
32-bit x86 Linux on an older CentOS release in a CI environment. With this
change, I'm able to compile the single file library in this environment.

Closes facebook#2443.
@Cyan4973 Cyan4973 merged commit 603829d into facebook:dev Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

_LARGEFILE64_SOURCE redefined in single file library on 32-bit Linux

3 participants