mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
*BSD fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3639 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
34670971fc
commit
a64f5e21b9
10 changed files with 63 additions and 242 deletions
|
@ -127,7 +127,11 @@ typedef struct obj_layout_unpadded {
|
|||
* what padding (if any) is required to get the alignment of the
|
||||
* structure correct.
|
||||
*/
|
||||
#ifdef ALIGN
|
||||
#undef ALIGN
|
||||
#endif
|
||||
#define ALIGN __alignof__(double)
|
||||
|
||||
struct obj_layout {
|
||||
#if defined(REFCNT_LOCAL)
|
||||
unsigned retained;
|
||||
|
|
|
@ -109,6 +109,9 @@ GSOutOfMemory(size_t size, BOOL retry)
|
|||
#if GS_WITH_GC == 0
|
||||
|
||||
/* Alignment */
|
||||
#ifdef ALIGN
|
||||
#undef ALIGN
|
||||
#endif
|
||||
#define ALIGN ((__alignof__(double) < 8) ? 8 : __alignof__(double))
|
||||
#define MINGRAN 256 /* Minimum granularity. */
|
||||
#define DEFBLOCK 16384 /* Default granularity. */
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
#include <sys/time.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <signal.h>
|
||||
#endif /* WIN32 */
|
||||
|
||||
|
|
6
Source/mframe/configure
vendored
6
Source/mframe/configure
vendored
|
@ -662,6 +662,12 @@ case "$target_cpu" in
|
|||
sparc*) host_cpu=sparc;;
|
||||
esac
|
||||
|
||||
case "$target_os" in
|
||||
freebsd*) target_os=freebsd;;
|
||||
openbsd*) target_os=openbsd;;
|
||||
esac
|
||||
|
||||
|
||||
if test -d $host_cpu -a "`echo $host_cpu/*`" != "$host_cpu/*"
|
||||
then
|
||||
my_dir=$host_cpu
|
||||
|
|
|
@ -37,6 +37,12 @@ case "$target_cpu" in
|
|||
sparc*) host_cpu=sparc;;
|
||||
esac
|
||||
|
||||
case "$target_os" in
|
||||
freebsd*) target_os=freebsd;;
|
||||
openbsd*) target_os=openbsd;;
|
||||
esac
|
||||
|
||||
|
||||
if test -d $host_cpu -a "`echo $host_cpu/*`" != "$host_cpu/*"
|
||||
then
|
||||
my_dir=$host_cpu
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue