Skip to content

Commit

Permalink
fix building with LIBNFC_DRIVER_RC522_UART=ON
Browse files Browse the repository at this point in the history
  • Loading branch information
Ildar Mulyukov committed Apr 27, 2018
1 parent c2fdab7 commit 3d070e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libnfc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ IF(WIN32)
ENDIF(WIN32)

# Library's chips
SET(CHIPS_SOURCES chips/pn53x)
SET(CHIPS_SOURCES chips/pn53x chips/rc522)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/chips)

# Library's buses
Expand Down Expand Up @@ -68,7 +68,7 @@ IF(LIBUSB_FOUND)
ENDIF(LIBUSB_FOUND)

# Library
SET(LIBRARY_SOURCES nfc nfc-device nfc-emulation nfc-internal conf iso14443-subr mirror-subr target-subr ${DRIVERS_SOURCES} ${BUSES_SOURCES} ${CHIPS_SOURCES} ${WINDOWS_SOURCES})
SET(LIBRARY_SOURCES nfc nfc-device nfc-emulation nfc-internal conf iso14443-subr mirror-subr target-subr timing ${DRIVERS_SOURCES} ${BUSES_SOURCES} ${CHIPS_SOURCES} ${WINDOWS_SOURCES})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

IF(LIBNFC_LOG)
Expand Down
3 changes: 2 additions & 1 deletion libnfc/timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/

#define _POSIX_C_SOURCE 199309L

#include "timing.h"
#include <assert.h>

Expand Down

0 comments on commit 3d070e1

Please sign in to comment.