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

Re-add NetBSD support. #257

Merged
merged 6 commits into from Jul 22, 2015
Merged

Re-add NetBSD support. #257

merged 6 commits into from Jul 22, 2015

Conversation

0-wiz-0
Copy link
Contributor

@0-wiz-0 0-wiz-0 commented Jul 14, 2015

Due to the change in the build system and additional bx/bgfx libraries, mame didn't build on NetBSD any longer.
The patches in this pull request fix this. Please take as much as possible, though I would understand that you want to avoid changing 3rdparty code.
In that case, let me know how to prepare the changes so you can take what you want as easily as possible.
Thanks.

Fixes linking on Unix when SDL is disabled.

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Will try sending this upstream as well.

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Even the Linux man page recommends avoiding ftime().
gettimeofday is in POSIX.1-2001 and more portable.

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
@balr0g
Copy link
Contributor

balr0g commented Jul 14, 2015

Can you pull-request the BGFX fixes to https://github.com/bkaradzic/bgfx ?

return FILERR_FAILURE;

result = ftruncate(fileno((FILE *)file), offset);
if (!result)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ftruncate returns 0 on success. See recent change 2fe1b16

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed and another patch added to pull request.

@0-wiz-0
Copy link
Contributor Author

0-wiz-0 commented Jul 14, 2015

There is no change necessary for BGFX; the patch for that is pulled from upstream.
The patches to BX have been submitted as bkaradzic/bx#61

Noted by startaq in mamedev#257.

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
jsonn pushed a commit to jsonn/pkgsrc that referenced this pull request Jul 15, 2015
rb6502 added a commit that referenced this pull request Jul 22, 2015
@rb6502 rb6502 merged commit b83cc37 into mamedev:master Jul 22, 2015
NullPopPoLab pushed a commit to NullPopPoLab/GroovyMAME that referenced this pull request Jan 29, 2023
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.

None yet

4 participants