From 33c142be80a031dfd9ad4f8237b73f4741648fa1 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 25 Apr 2011 20:49:45 +0200 Subject: [PATCH] Remove solaris posix_memalign() helper Not used in core code anymore. Signed-off-by: Jens Axboe --- Makefile | 2 +- solaris.c | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 solaris.c diff --git a/Makefile b/Makefile index 0dc997c8..c45a1b1c 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ ifeq ($(UNAME), Linux) 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__ diff --git a/solaris.c b/solaris.c deleted file mode 100644 index 869e8d89..00000000 --- a/solaris.c +++ /dev/null @@ -1,16 +0,0 @@ -#include -#include -#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; -} -- 2.25.1