X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=modules%2Fbsd-comp.c;h=48bde3125d84dbdd6ace6819b4afd530b9e0e310;hp=b37d363505b61d8075213b15f1489924866e9a56;hb=344df78d925b7a47fe56c2544d12218380423699;hpb=d344ccb0681c547ce4087962b54d10859bb09137 diff --git a/modules/bsd-comp.c b/modules/bsd-comp.c index b37d363..48bde31 100644 --- a/modules/bsd-comp.c +++ b/modules/bsd-comp.c @@ -41,7 +41,7 @@ * This version is for use with STREAMS under SunOS 4.x, * DEC Alpha OSF/1, and AIX 4.x. * - * $Id: bsd-comp.c,v 1.11 1995/05/02 02:49:09 paulus Exp $ + * $Id: bsd-comp.c,v 1.12 1995/05/19 03:48:34 paulus Exp $ */ #ifdef __aix4__ @@ -56,8 +56,13 @@ #include #ifdef sun +#ifdef __svr4__ /* SunOS 5.x */ +#include +#define ALLOCATE(n) kmem_alloc((n), KM_NOSLEEP) +#else /* SunOS 4.x */ #include #define ALLOCATE(n) kmem_alloc((n), KMEM_NOSLEEP) +#endif #define FREE(p, n) kmem_free((p), (n)) #endif