Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7bfc2eb

Browse files
committed
Fixed to work again without USE_GUSI and with USE_MSL_MALLOC
1 parent 12e89e4 commit 7bfc2eb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Mac/Include/config.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4848
#define USE_GUSI
4949
#endif
5050

51+
#ifndef USE_GUSI
52+
#define DONT_HAVE_SYS_TYPES_H
53+
#define DONT_HAVE_SYS_STAT_H
54+
#define HAVE_STAT_H
55+
#endif
56+
5157
/* Define if on AIX 3.
5258
System headers sometimes define this.
5359
We just want to avoid a redefinition error message. */
@@ -182,7 +188,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
182188
#define HAVE_STDARG_PROTOTYPES
183189

184190
/* Define if malloc(0) returns a NULL pointer */
191+
#ifdef USE_MSL_MALLOC
192+
#define MALLOC_ZERO_RETURNS_NULL
193+
#else
185194
#undef MALLOC_ZERO_RETURNS_NULL
195+
#endif
186196

187197
/* Define if you have POSIX threads */
188198
#ifdef USE_GUSI2
@@ -384,7 +394,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
384394
#undef HAVE_GETPWENT
385395

386396
/* Define if you have the gettimeofday function. */
397+
#ifdef USE_GUSI
387398
#define HAVE_GETTIMEOFDAY
399+
#endif
388400

389401
/* Define if you have the getwd function. */
390402
#undef HAVE_GETWD

0 commit comments

Comments
 (0)