Skip to content

Commit

Permalink
Merge pull request robertdavidgraham#166 from alessio/master
Browse files Browse the repository at this point in the history
Fix FTBFS on most Debian architectures
  • Loading branch information
robertdavidgraham committed May 13, 2015
2 parents a60cc70 + f716f0f commit b395f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pixie-threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pixie_begin_thread(
#if defined(WIN32)
UNUSEDPARM(flags);
return _beginthread(worker_thread, 0, worker_data);
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__kFreeBSD__) || defined(__OpenBSD__)

typedef void *(*PTHREADFUNC)(void*);
pthread_t thread_id;
Expand Down
2 changes: 1 addition & 1 deletion src/pixie-threads.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void pixie_locked_subtract_u32(unsigned *lhs, unsigned rhs);
#define pixie_locked_CAS32(dst, src, expected) __sync_bool_compare_and_swap((volatile int*)(dst),(int)expected,(int)src);
#define pixie_locked_CAS64(dst, src, expected) __sync_bool_compare_and_swap((volatile long long int*)(dst),(long long int)expected,(long long int)src);

#if defined(__arm__)
#if !defined(__x86_64__) && !defined(__i386__)
#define rte_wmb() __sync_synchronize()
#define rte_rmb() __sync_synchronize()
#define rte_pause()
Expand Down

0 comments on commit b395f18

Please sign in to comment.