Fix build on amd64.
This commit is contained in:
parent
48e177ea8b
commit
c791b92bd3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125767
2 changed files with 43 additions and 8 deletions
|
@ -1,6 +1,9 @@
|
|||
--- Makefile.orig Sun Dec 14 18:21:44 2003
|
||||
+++ Makefile Sun Jan 25 07:38:41 2004
|
||||
@@ -83,6 +83,26 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- Makefile.orig
|
||||
+++ Makefile
|
||||
@@ -143,6 +143,26 @@
|
||||
|
||||
else
|
||||
# ----------------------------------------------------------------------------
|
||||
|
@ -27,20 +30,20 @@
|
|||
# Irix
|
||||
# ----------------------------------------------------------------------------
|
||||
ifeq ($(patsubst IRIX%,IRIX,$(SYSTEM)), IRIX)
|
||||
@@ -158,6 +179,7 @@
|
||||
@@ -228,6 +248,7 @@
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
+endif
|
||||
|
||||
AR = ar
|
||||
INSTALL = install
|
||||
@@ -171,7 +193,7 @@
|
||||
ifeq (undefined, $(origin SHARED_OBJ_EXT))
|
||||
SHARED_OBJ_EXT = o
|
||||
@@ -245,7 +266,7 @@
|
||||
STRIP = -s
|
||||
endif
|
||||
INCLUDE = -Iinclude
|
||||
-CFLAGS = $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA)
|
||||
+CFLAGS += $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA)
|
||||
+CFLAGS += $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA) -fPIC
|
||||
|
||||
LIB.SRCS = src/glew.c
|
||||
LIB.OBJS = $(LIB.SRCS:.c=.o)
|
||||
|
|
32
x11/xbelld/files/patch-xbelld.c
Normal file
32
x11/xbelld/files/patch-xbelld.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
|
||||
$FreeBSD$
|
||||
|
||||
--- xbelld.c.orig
|
||||
+++ xbelld.c
|
||||
@@ -268,7 +268,7 @@
|
||||
u_int i;
|
||||
|
||||
if (!hp->h_size)
|
||||
- return NULL;
|
||||
+ return False;
|
||||
i = hp->h_hash(data) % hp->h_size;
|
||||
if (!TAILQ_EMPTY(&(hp->h_buckets[i])))
|
||||
{
|
||||
@@ -914,7 +914,7 @@
|
||||
close(dfd);
|
||||
for (nent = 0, dep = (struct dirent *)dbuf;
|
||||
(char *)dep - dbuf < nb;
|
||||
- ++nent, (char *)dep+= dep->d_reclen)
|
||||
+ ++nent, dep+= dep->d_reclen)
|
||||
;
|
||||
_hash_resize(&(_bd.bd_sndhash), nent * 2);
|
||||
if (_bd.bd_defsnd)
|
||||
@@ -924,7 +924,7 @@
|
||||
}
|
||||
for (dep = (struct dirent *)dbuf;
|
||||
(char *)dep - dbuf < nb;
|
||||
- (char *)dep+= dep->d_reclen)
|
||||
+ dep+= dep->d_reclen)
|
||||
{
|
||||
char *suf;
|
||||
static const char *sufs[] = AUDIO_SUFS;
|
Loading…
Reference in a new issue