Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
d8fb5295
Commit
d8fb5295
authored
20 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Updates for NetBSD 2.0
parent
5d6ab8c5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/build/Common.gmake
+5
-10
5 additions, 10 deletions
src/build/Common.gmake
src/sbbs3/GNUmakefile
+0
-5
0 additions, 5 deletions
src/sbbs3/GNUmakefile
src/sbbs3/xtrn.cpp
+2
-4
2 additions, 4 deletions
src/sbbs3/xtrn.cpp
with
7 additions
and
19 deletions
src/build/Common.gmake
+
5
−
10
View file @
d8fb5295
...
...
@@ -182,17 +182,13 @@ MTOBJODIR := $(CCPRE).$(machine).obj.$(BUILDPATH)-mt
EXEODIR := $(CCPRE).$(machine).exe.$(BUILDPATH)
LDFLAGS += -L$(LIBODIR)
ifeq ($(os),
net
bsd)
ifeq ($(os),
open
bsd)
DELETE := rm -f
else
ifeq ($(os),
openbsd
)
ifeq ($(os),
sunos
)
DELETE := rm -f
else
ifeq ($(os),sunos)
DELETE := rm -f
else
DELETE = rm -fv
endif
DELETE = rm -fv
endif
endif
...
...
@@ -221,7 +217,7 @@ ifeq ($(os),sunos) # Solaris
CFLAGS += -D__solaris__ -DNEEDS_DAEMON -DNEEDS_FORKPTY -DNEEDS_SETENV -DNEEDS_CFMAKERAW
endif
ifeq ($(os),netbsd) # NetBSD
CFLAGS += -D__unix__
-I/usr/pkg/include -I/usr/pkg/pthreads/include -DNEEDS_FORKPTY
CFLAGS += -D__unix__
endif
ifeq ($(os),darwin)
CFLAGS += -D__unix__ -fno-common -D__DARWIN__
...
...
@@ -246,9 +242,8 @@ else
XP_SEM := 1
else
ifeq ($(os),netbsd) # NetBSD
CFLAGS += -D__unix__
MT_CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS +=
-L/usr/pkg/lib -L/usr/pkg/pthreads/lib
-lpthread
MT_LDFLAGS += -lpthread
XP_SEM := 1
else
ifeq ($(os),qnx) # QNX
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/GNUmakefile
+
0
−
5
View file @
d8fb5295
...
...
@@ -30,11 +30,6 @@ ifeq ($(os),sunos) # Solaris
LDFLAGS
+=
-lsocket
-lnsl
-lrt
endif
ifeq
($(os),netbsd)
LDFLAGS
+=
-L
/usr/pkg/lib
UTIL_LDFLAGS
+=
-lpth
-L
/usr/pkg/lib
endif
# So far, only QNX has sem_timedwait()
ifeq
($(os),qnx)
LDFLAGS
+=
-lsocket
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/xtrn.cpp
+
2
−
4
View file @
d8fb5295
...
...
@@ -48,12 +48,10 @@
#if defined(__FreeBSD__)
#include
<libutil.h>
// forkpty()
#elif defined(__OpenBSD__)
#elif defined(__OpenBSD__)
|| defined(__NetBSD__) || defined(__DARWIN__)
#include
<util.h>
#elif defined(__linux__)
#include
<pty.h>
#elif defined(__DARWIN__)
#include
<util.h>
#elif defined(__QNX__)
#if 0
#include <unix.h>
...
...
@@ -154,7 +152,7 @@
#ifndef TTYDEF_CFLAG
#define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
#endif
#if defined(__QNX__) || defined(__solaris__)
#if defined(__QNX__) || defined(__solaris__)
|| defined(__NetBSD__)
static
cc_t
ttydefchars
[
NCCS
]
=
{
CEOF
,
CEOL
,
CEOL
,
CERASE
,
CWERASE
,
CKILL
,
CREPRINT
,
CERASE2
,
CINTR
,
CQUIT
,
CSUSP
,
CDSUSP
,
CSTART
,
CSTOP
,
CLNEXT
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment