]> git.ozlabs.org Git - ppp.git/blobdiff - modules/ppp_mod.h
Install Microsoft dictionaries (patch from Frank Cusack)
[ppp.git] / modules / ppp_mod.h
index 5ad478722bedef9cdff1a318b7b3709cfa1e34bf..f0af008861ef0f1972a126ee71e65b09cef1bf4b 100644 (file)
@@ -40,6 +40,8 @@
 #define ALLOC_NOSLEEP(n)       (void *)malloc((u_long)(n), BUCKETINDEX(n), M_DEVBUF, M_NOWAIT)
 #endif
 
+#define bcanputnext(q, band)   canputnext((q))
+
 #ifdef FREE
 #undef FREE
 #endif
@@ -54,7 +56,7 @@
 #include <sys/proc.h>
 #define NOTSUSER()             (suser(u.u_procp->p_rcred, &u.u_acflag) ? EPERM : 0)
 
-#include "ppp_osf.h"
+/* #include "ppp_osf.h" */
 
 #endif /* __osf__ */
 
  */
 #ifdef DEBUG
 #if defined(SVR4) || defined(__osf__)
+#if defined(SNI)
+#include <sys/strlog.h>
+#define STRLOG_ID              4712
+#define DPRINT(f)              strlog(STRLOG_ID, 0, 0, SL_TRACE, f)
+#define DPRINT1(f, a1)         strlog(STRLOG_ID, 0, 0, SL_TRACE, f, a1)
+#define DPRINT2(f, a1, a2)     strlog(STRLOG_ID, 0, 0, SL_TRACE, f, a1, a2)
+#define DPRINT3(f, a1, a2, a3) strlog(STRLOG_ID, 0, 0, SL_TRACE, f, a1, a2, a3)
+#else
 #define DPRINT(f)              cmn_err(CE_CONT, f)
 #define DPRINT1(f, a1)         cmn_err(CE_CONT, f, a1)
 #define DPRINT2(f, a1, a2)     cmn_err(CE_CONT, f, a1, a2)
 #define DPRINT3(f, a1, a2, a3) cmn_err(CE_CONT, f, a1, a2, a3)
+#endif /* SNI */
 #else
 #define DPRINT(f)              printf(f)
 #define DPRINT1(f, a1)         printf(f, a1)
 #define DPRINT2(f, a1, a2)     printf(f, a1, a2)
 #define DPRINT3(f, a1, a2, a3) printf(f, a1, a2, a3)
-#endif /* SVR4 */
+#endif /* SVR4 or OSF */
 
 #else
 #define DPRINT(f)              0