Remove solaris posix_memalign() helper
authorJens Axboe <jaxboe@fusionio.com>
Mon, 25 Apr 2011 18:49:45 +0000 (20:49 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 25 Apr 2011 18:49:45 +0000 (20:49 +0200)
Not used in core code anymore.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Makefile
solaris.c [deleted file]

index 0dc997c..c45a1b1 100644 (file)
--- 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 (file)
index 869e8d8..0000000
--- a/solaris.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#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;
-}