Add support for OpenBSD. Thanks to Marco S Hyman <marc@snafu.org>.
git-svn-id: svn://10.0.0.236/trunk@9107 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -698,6 +698,34 @@ ifeq ($(OS_ARCH),NetBSD)
|
||||
OTHER_LIBS = /usr/X11R6/lib/libXm.a -L/usr/X11R6/lib -lXt -lXmu -lXext -lX11 -lSM -lICE -lm $(OS_LIBS)
|
||||
endif
|
||||
|
||||
########################################
|
||||
# NetBSD
|
||||
# Work around linker semantics that will never find our own libutil on 1.3.x
|
||||
ifeq ($(OS_ARCH),NetBSD)
|
||||
ifeq ($(OS_MINOR),3)
|
||||
FOOL_GMAKE = $(EXPORT_LDFLAGS:$(DIST)/lib/lib%.a=-l%)
|
||||
DSO_EX_LIBS = $(FOOL_GMAKE:-lutil=$(DIST)/lib/libutil.a)
|
||||
endif
|
||||
ifdef LIBRUNPATH
|
||||
OS_LIBS += -R$(LIBRUNPATH)
|
||||
endif
|
||||
OTHER_LIBS = -L/usr/X11R6/lib -lXm -lXt -lXmu -lXext -lX11 -lSM -lICE -lm $(OS_LIBS)
|
||||
endif
|
||||
|
||||
########################################
|
||||
# OpenBSD
|
||||
# Copied from NetBSD...
|
||||
ifeq ($(OS_ARCH),OpenBSD)
|
||||
#ifeq ($(OS_MINOR),3)
|
||||
#FOOL_GMAKE = $(EXPORT_LDFLAGS:$(DIST)/lib/lib%.a=-l%)
|
||||
#DSO_EX_LIBS = $(FOOL_GMAKE:-lutil=$(DIST)/lib/libutil.a)
|
||||
#endif
|
||||
ifdef LIBRUNPATH
|
||||
OS_LIBS += -R$(LIBRUNPATH)
|
||||
endif
|
||||
OTHER_LIBS = -L/usr/X11R6/lib -lXm -lXt -lXmu -lXext -lX11 -lSM -lICE -lm $(OS_LIBS)
|
||||
endif
|
||||
|
||||
########################################
|
||||
# BSDI
|
||||
ifeq ($(OS_ARCH),BSD_OS)
|
||||
|
||||
@@ -30,6 +30,9 @@
|
||||
#include <Xm/Text.h>
|
||||
#include <Xm/DrawnB.h>
|
||||
#include <Xm/CutPaste.h>
|
||||
#ifndef MOTIF11
|
||||
#include <Xm/DropSMgr.h>
|
||||
#endif
|
||||
#include <X11/StringDefs.h>
|
||||
#include <X11/cursorfont.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -371,7 +371,7 @@ XFE_HTMLView::makeScroller(Widget parent)
|
||||
scroller = fe_MakeScrolledWindow (m_contextData, pane, "scroller");
|
||||
XtVaSetValues (CONTEXT_DATA (m_contextData)->scrolled,
|
||||
XmNborderWidth, 0,
|
||||
#if defined(__FreeBSD__)||defined(BSDI)||defined(LINUX)||defined(IRIX)
|
||||
#if defined(__FreeBSD__)||defined(BSDI)||defined(LINUX)||defined(IRIX)||defined(__NetBSD__)||defined(__OpenBSD__)
|
||||
// Allow for resolutions > 1000 pixels.
|
||||
// This causes the vertical scrollbar not to show
|
||||
// up on Solaris 2.4, bug in Motif (77998).
|
||||
|
||||
@@ -76,6 +76,11 @@ extern "C" int statfs(char *, struct statfs *);
|
||||
#define STATFS statfs
|
||||
#elif defined(BSDI)
|
||||
#include <sys/mount.h> /* for statfs() */
|
||||
#elif defined(NETBSD)
|
||||
#include <sys/mount.h> /* for statfs() */
|
||||
#define STATFS statfs
|
||||
#elif defined(OPENBSD)
|
||||
#include <sys/mount.h> /* for statfs() */
|
||||
#define STATFS statfs
|
||||
#else
|
||||
#include <sys/statfs.h> /* for statfs() */
|
||||
|
||||
Reference in New Issue
Block a user