blob: 98e09af5c4334dfbb4e98c7be525c882b8123389 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-an,v 1.2 2005/10/23 15:36:48 rillig Exp $
--- Src/Modules/zpty.c.orig 2004-06-03 00:15:01.000000000 +0200
+++ Src/Modules/zpty.c 2005-05-10 00:01:41.000000000 +0200
@@ -246,15 +246,13 @@
#ifdef __linux
static char char1[] = "abcdefghijklmnopqrstuvwxyz";
static char char2[] = "0123456789abcdef";
-#else /* __linux */
-# ifdef __FreeBSD__
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
static char char1[] = "pqrsPQRS";
static char char2[] = "0123456789abcdefghijklmnopqrstuv";
-# else /* __FreeBSD__ */
+#else /* __FreeBSD__ || __DragonFly__ */
static char char1[] = "pqrstuvwxyzPQRST";
static char char2[] = "0123456789abcdef";
-# endif /* __FreeBSD__ */
-#endif /* __linux */
+#endif
static char name[11];
static int mfd, sfd;
|