*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:
fedor 1999-02-02 00:08:58 +00:00
parent 34670971fc
commit a64f5e21b9
10 changed files with 63 additions and 242 deletions

View file

@ -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;

View file

@ -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. */

View file

@ -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 */

View file

@ -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

View file

@ -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