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

Fixes for build errors #96

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cmake/config_posix.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@
#cmakedefine _XOPEN_SOURCE @_XOPEN_SOURCE@
#cmakedefine SYSCONFDIR "@SYSCONFDIR@"

#ifdef HAVE_ENDIAN_H
#define _DEFAULT_SOURCE
Copy link
Member

Choose a reason for hiding this comment

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

What is this macro and why is it necessary?

Copy link
Member

Choose a reason for hiding this comment

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

Ping.

Copy link
Author

Choose a reason for hiding this comment

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

It is needed to since glib 2.19, otherwise we get a implicit declaration function

(Sorry I did not get any notification of this...)

#endif

#endif /* !__CONFIG_POSIX_H__ */

3 changes: 3 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
set(EXAMPLES-SOURCES
felica-lite-dump
felica-read-ndef
mifare-classic-format
mifare-classic-read-ndef
mifare-classic-write-ndef
Expand All @@ -12,6 +14,7 @@ set(EXAMPLES-SOURCES
mifare-desfire-ev1-configure-default-key
mifare-desfire-ev1-configure-random-uid
mifare-ultralight-info
mifare-ultralightc-diversify
ntag-detect
ntag-removeauth
ntag-setauth
Expand Down
1 change: 1 addition & 0 deletions libfreefare/felica.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>

#include <sys/types.h>

Expand Down