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

FreeBSD only has cuserid() in compat mode #577

Closed
dankamongmen opened this issue May 7, 2020 · 1 comment
Closed

FreeBSD only has cuserid() in compat mode #577

dankamongmen opened this issue May 7, 2020 · 1 comment
Assignees
Labels
bug Something isn't working freebsd the freest of bsds, but not very dragonFLY
Milestone

Comments

@dankamongmen
Copy link
Owner

notcurses-tetris compilation blows up on FreeBSD due to cuserid() not being available. It is if one is willing to use the FreeBSD Linux compatibility library. I'm suspicious of this library, but if it's a reasonable-enough solution, just throw it at the problem. Otherwise, do something POSIXy.

@dankamongmen dankamongmen added bug Something isn't working freebsd the freest of bsds, but not very dragonFLY labels May 7, 2020
@dankamongmen dankamongmen added this to the 1.4.0 milestone May 7, 2020
@dankamongmen dankamongmen self-assigned this May 7, 2020
@dankamongmen
Copy link
Owner Author

Replaced cuserid with getpwent(geteuid())->pw_name, and it appears to work on both Linux and FreeBSD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working freebsd the freest of bsds, but not very dragonFLY
Projects
None yet
Development

No branches or pull requests

1 participant