cygwin support.
This commit is contained in:
parent
97c7bbe6b8
commit
52c8d9f862
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.24 2006/04/02 01:39:48 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.25 2007/07/20 16:39:05 christos Exp $
|
||||
# Copyright (c) 1992,1991 Carnegie Mellon University
|
||||
# All Rights Reserved.
|
||||
#
|
||||
@ -48,8 +48,9 @@
|
||||
#SITE = SOLARIS
|
||||
#SITE = NETBSD
|
||||
#SITE = CMUCS
|
||||
SITE1 != uname -s | tr '[a-z]' '[A-Z]'
|
||||
SITE2 =$(shell uname -s | tr '[a-z]' '[A-Z]')
|
||||
SITE1 != uname -s | tr '[a-z]' '[A-Z]' | sed -e s/_.*//g
|
||||
SITE2 = $(shell uname -s | tr '[a-z]' '[A-Z]' \
|
||||
| sed -e s/_.*//g)
|
||||
SITE = ${SITE1}${SITE2}
|
||||
TARDIR = sup-0.0
|
||||
|
||||
@ -62,6 +63,7 @@ OSF_DEFINES = -UMACH -DOSF -D_BSD -noshrlib -g -DNEED_VSNPRINTF \
|
||||
-DVAR_TMP
|
||||
SUNOS_DEFINES = -UMACH -D_BSD -DNEED_VSNPRINTF -DVAR_TMP \
|
||||
-DHAS_POSIX_DIR -DHAS_DAEMON -DNEED_DAEMON
|
||||
CYGWIN_DEFINES = -UMACH -DVAR_TMP -DHAS_POSIX_DIR
|
||||
CMUCS_DEFINES = -DMACH -DDOPRINT_VA -DNEED_VPRINTF
|
||||
NON_MACH_DEFINES = -UMACH
|
||||
|
||||
@ -91,6 +93,7 @@ AFS_LIBS = -L${AFS_LIBPATH}/afs -lkauth -lprot -L${AFS_LIBPATH} -lubik -lauth -
|
||||
|
||||
NETBSD_LIBS = -lcrypt
|
||||
LINUX_LIBS = -lcrypt
|
||||
CYGWIN_LIBS = -lcrypt
|
||||
CMUCS_LIBS = -lsys
|
||||
OSF_LIBS = -lbsd
|
||||
EXTRALIBS = libextra.a
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: expand.c,v 1.15 2004/10/30 15:48:20 dsl Exp $ */
|
||||
/* $NetBSD: expand.c,v 1.16 2007/07/20 16:39:05 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991 Carnegie Mellon University
|
||||
@ -182,7 +182,7 @@ matchdir(char *pattern)
|
||||
if (dirp == NULL)
|
||||
return;
|
||||
while ((dp = readdir(dirp)) != NULL) {
|
||||
#if defined(HAS_POSIX_DIR) && !defined(__SVR4)
|
||||
#if defined(HAS_POSIX_DIR) && !defined(__SVR4) && !defined(__CYGWIN__)
|
||||
if (dp->d_fileno == 0)
|
||||
continue;
|
||||
#else
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ffilecopy.c,v 1.6 2003/04/03 17:14:24 christos Exp $ */
|
||||
/* $NetBSD: ffilecopy.c,v 1.7 2007/07/20 16:39:05 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1991 Carnegie Mellon University
|
||||
@ -61,7 +61,7 @@ ffilecopy(FILE * here, FILE * there)
|
||||
if (fflush(there) == EOF) /* flush pending output */
|
||||
return (EOF);
|
||||
|
||||
#if defined(__386BSD__) || defined(__NetBSD__)
|
||||
#if defined(__386BSD__) || defined(__NetBSD__) || defined(__CYGWIN__)
|
||||
if ((here->_r) > 0) { /* flush buffered input */
|
||||
i = write(therefile, here->_p, here->_r);
|
||||
if (i != here->_r)
|
||||
@ -84,7 +84,7 @@ ffilecopy(FILE * here, FILE * there)
|
||||
if (i < 0)
|
||||
return (EOF);
|
||||
|
||||
#if defined(__386BSD__) || defined(__NetBSD__)
|
||||
#if defined(__386BSD__) || defined(__NetBSD__) || defined(__CYGWIN__)
|
||||
(here->_flags) |= __SEOF; /* indicate EOF */
|
||||
#else
|
||||
#ifndef __linux__
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: scm.c,v 1.23 2006/05/09 20:18:10 mrg Exp $ */
|
||||
/* $NetBSD: scm.c,v 1.24 2007/07/20 16:39:05 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Carnegie Mellon University
|
||||
@ -173,11 +173,18 @@
|
||||
#include <net/if.h>
|
||||
#include <netdb.h>
|
||||
#include <stdarg.h>
|
||||
#ifndef __linux__
|
||||
#if !defined(__linux__)
|
||||
#if !defined(__CYGWIN__)
|
||||
#include <ifaddrs.h>
|
||||
#else
|
||||
#include "ifaddrs.h"
|
||||
#endif
|
||||
#else
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
#ifdef __CYGWIN__
|
||||
#include "getaddrinfo.h"
|
||||
#endif
|
||||
#include "supcdefs.h"
|
||||
#include "supextern.h"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: supfilesrv.c,v 1.37 2006/12/20 16:33:34 christos Exp $ */
|
||||
/* $NetBSD: supfilesrv.c,v 1.38 2007/07/20 16:39:06 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Carnegie Mellon University
|
||||
@ -571,9 +571,11 @@ init(int argc, char **argv)
|
||||
case '4':
|
||||
af = AF_INET;
|
||||
break;
|
||||
#ifdef AF_INET6
|
||||
case '6':
|
||||
af = AF_INET6;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
fprintf(stderr, "Unknown flag %s ignored\n", argv[0]);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user