Merge pull request #3 from willnewton/master

Add support for AArch64
This commit is contained in:
Mark Heily 2014-09-01 12:31:12 -04:00
commit b013ed1025
2 changed files with 3 additions and 6 deletions

View File

@ -15,7 +15,7 @@ AC_CHECK_DECL([ppoll], [], [], [[
#define _GNU_SOURCE
#include <poll.h>
]])
AC_CHECK_HEADERS([[sys/epoll.h sys/inotify.h sys/signalfd.h sys/timerfd.h sys/eventfd.h]])
AC_CHECK_HEADERS([sys/epoll.h sys/inotify.h sys/signalfd.h sys/timerfd.h sys/eventfd.h])
AC_CONFIG_FILES([Makefile libkqueue.pc])

View File

@ -14,6 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
@ -120,11 +121,7 @@ knote_lookup(struct filter *filt, uintptr_t ident)
ent = RB_FIND(knt, &filt->kf_knote, &query);
pthread_rwlock_unlock(&filt->kf_knote_mtx);
#if defined(__x86_64__) || defined(__mips64)
dbg_printf("id=%lu ent=%p", ident, ent);
#else
dbg_printf("id=%u ent=%p", ident, ent);
#endif
dbg_printf("id=%" PRIuPTR " ent=%p", ident, ent);
return (ent);
}