Skip to content

Commit

Permalink
Changes to compile on MAC OS x
Browse files Browse the repository at this point in the history
  • Loading branch information
liorko87 committed Feb 13, 2020
1 parent 76ee08c commit 4914986
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ endif
endif # Linux c++11

ifeq ($(uname_os), Darwin)
libs: compile-ntl compile-blake compile-kcp
libs: compile-ntl compile-blake
endif # Darwin c++11
endif # c++11

Expand Down
5 changes: 5 additions & 0 deletions src/comm/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// Created by roee on 1/16/19.
//

#ifdef __x86_64__
#ifndef __APPLE__
#include "../../include/comm/utils.h"

#include <sys/time.h>
Expand All @@ -26,3 +28,6 @@ IUINT64 iclock64(void) {
IUINT32 iclock() {
return (IUINT32) (iclock64() & 0xfffffffful);
}

#endif
#endif

0 comments on commit 4914986

Please sign in to comment.