summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index 892f56792c..c076ba1fc8 100644
--- a/lib/replace/replace.c
+++ b/lib/replace/replace.c
@@ -851,7 +851,7 @@ void *rep_memalign( size_t align, size_t size )
size_t pagesize = (size_t)-1;
#endif
if (pagesize == (size_t)-1) {
- DEBUG(0,("memalign functionality not available on this platform!\n"));
+ errno = ENOSYS;
return NULL;
}
if (size < pagesize) {