Not used in core code anymore.
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
CFLAGS += -rdynamic
endif
ifeq ($(UNAME), SunOS)
CFLAGS += -rdynamic
endif
ifeq ($(UNAME), SunOS)
- SOURCE += fifo.c lib/strsep.c helpers.c solaris.c engines/posixaio.c \
+ SOURCE += fifo.c lib/strsep.c helpers.c engines/posixaio.c \
engines/solarisaio.c
LIBS += -lpthread -ldl -laio -lrt -lnsl -lsocket
CPPFLAGS += -D__EXTENSIONS__
engines/solarisaio.c
LIBS += -lpthread -ldl -laio -lrt -lnsl -lsocket
CPPFLAGS += -D__EXTENSIONS__
+++ /dev/null
-#include <stdlib.h>
-#include <errno.h>
-#include "compiler/compiler.h"
-
-/*
- * Some Solaris versions don't have posix_memalign(), provide a private
- * weak alternative
- */
-int __weak posix_memalign(void **ptr, size_t align, size_t size)
-{
- *ptr = memalign(align, size);
- if (*ptr)
- return 0;
-
- return ENOMEM;
-}