Clean up SunOS build

This commit is contained in:
Robert Mustacchi 2011-08-09 14:36:31 -07:00 committed by Ben Noordhuis
parent 54a6c6fee0
commit 4b1b8faea8
3 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,9 @@
/* fdatasync(2) is available */
#define HAVE_FDATASYNC 1
/* utimes(2) is available */
#define HAVE_UTIMES 1
/* futimes(2) is available */
/* #undef HAVE_FUTIMES */

View File

@ -67,7 +67,7 @@
#ifndef ECB_MEMORY_FENCE
#if ECB_GCC_VERSION(2,5)
#if __x86
#if defined(__x86) || defined(__i386)
#define ECB_MEMORY_FENCE __asm__ __volatile__ ("lock; orb $0, -1(%%esp)" : : : "memory")
#define ECB_MEMORY_FENCE_ACQUIRE ECB_MEMORY_FENCE /* non-lock xchg might be enough */
#define ECB_MEMORY_FENCE_RELEASE do { } while (0) /* unlikely to change in future cpus */

View File

@ -37,7 +37,7 @@ uint64_t uv_hrtime() {
* we don't want to potentially create a race condition in the use of snprintf.
*/
int uv_exepath(char* buffer, size_t* size) {
size_t res;
ssize_t res;
pid_t pid;
char buf[128];