Update sdb to fix cygwin build issue

This commit is contained in:
pancake 2015-04-01 14:09:23 +02:00
parent 6eedf43dbe
commit 54dc51f81c
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ It is distributed as a standalone binary and a library.
There's also the sdbtypes: a vala library that implements
several data structures on top of an sdb or a memcache instance.
[![Travis](https://api.travis-ci.org/radare/sdb.svg)](https://travis-ci.org/radare/sdb)
[![Build Status](http://ci.rada.re/buildStatus/icon?job=sdb)](http://ci.rada.re/job/sdb/)
[![Build Status](https://scan.coverity.com/projects/1651/badge.svg)](https://scan.coverity.com/projects/1651)

View File

@ -37,7 +37,7 @@ char *cdb_alloc(ut32 n) {
if (!posix_memalign (&ret, ALIGNMENT, n))
return ret;
return NULL;
#elif __WINDOWS__
#elif __WINDOWS__ && !__CYGWIN__
return _aligned_malloc (n, ALIGNMENT);
#else
return malloc (n);