-
Notifications
You must be signed in to change notification settings - Fork 64
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
Solaris and descendants define offset_t in sys/types.h #165
Comments
Hi @drboone, Thank you for reporting this! I did not know offset_t was a typedef already in Solaris/Illumos! Changing the typedef like you mentioned will be the solution. I will work on that. |
Solaris/Illumos have an offset_t type already so this causes a conflict. Changing our typedef to oscoffset_t to workaround this. [Seagate/openSeaChest#165] Signed-off-by: Tyler Erickson <tyler.erickson@seagate.com>
I have pushed a fix for this issue as well as the one the CI identified in opensea-transport when I pushed the fix. |
Thanks! |
The opensea-common section of openSeaChest defines offset_t. Solaris and at least some of its descendants define offset_t in sys/types.h for use with the llseek system call:
Thus, building openSeaChest currently fails on these platforms. It looks like the problem is restricted to just the -common subtree. Perhaps openSeaChest could use a slightly less collidey typedef name? A naive replacement of offset_t with OSCoffset_t seems to eliminate this build problem. From a SmartOS (Illumos distro) build attempt:
Compiler:
The text was updated successfully, but these errors were encountered: