Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abb9638e authored by Alexey Tarasov's avatar Alexey Tarasov
Browse files

1. added macro definitions to AndroidConfig.h

2. removed unnecessary include of <alloca.h>
parent 57401dc8
Loading
Loading
Loading
Loading
+22 −1
Original line number Diff line number Diff line
@@ -152,9 +152,15 @@
 * HAVE_LITTLE_ENDIAN -- we are little endian.
 * HAVE_BIG_ENDIAN -- we are big endian.
 */
#define HAVE_ENDIAN_H
/* #define HAVE_ENDIAN_H */
#define HAVE_LITTLE_ENDIAN

/*
 * Define this if you have sys/endian.h
 * NOTE: mutually exclusive with HAVE_ENDIAN_H
 */
#define HAVE_SYS_ENDIAN_H

/*
 * We need to choose between 32-bit and 64-bit off_t.  All of our code should
 * agree on the same size.  For desktop systems, use 64-bit values,
@@ -293,4 +299,19 @@
 */
#define HAVE_WRITEV 1

/*
 * Define if <alloca.h> does not exist
 * NOTE: <alloca.h> defines alloca() which
 *   on FreeBSD is defined in <stdlib.h>
 */
#define HAVE_NO_ALLOCA_H

/*
 * Defines CLOCK_PROCESS_CPUTIME_ID for clock_gettime()
 * XXX: CLOCK_PROF seems to be commonly used replacement
 */
#ifndef  CLOCK_PROCESS_CPUTIME_ID
#define CLOCK_PROCESS_CPUTIME_ID CLOCK_PROF
#endif

#endif /*_ANDROID_CONFIG_H*/
+0 −1
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <alloca.h>
#include <assert.h>
#include <arpa/inet.h>