diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
commit | 7011c19a8c96a2f8fb7c04d61cb28cdc507584a6 (patch) | |
tree | 22c0efaf2b6bb5b461389f9bac9542c7e3a5909a /sysutils/gnome-system-monitor/files/patch-src_util.c | |
parent | Now buildable on 4.x, still broken on >= 5.x. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_11_0'.release/4.11.0
Diffstat (limited to 'sysutils/gnome-system-monitor/files/patch-src_util.c')
-rw-r--r-- | sysutils/gnome-system-monitor/files/patch-src_util.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/sysutils/gnome-system-monitor/files/patch-src_util.c b/sysutils/gnome-system-monitor/files/patch-src_util.c deleted file mode 100644 index 288ccc26adc0..000000000000 --- a/sysutils/gnome-system-monitor/files/patch-src_util.c +++ /dev/null @@ -1,34 +0,0 @@ ---- src/util.c.orig Fri Dec 12 02:26:57 2003 -+++ src/util.c Fri Dec 12 02:35:38 2003 -@@ -16,6 +16,7 @@ - - #ifdef __FreeBSD__ - # include <errno.h> -+# include <termios.h> - # include <libutil.h> - #endif - -@@ -181,7 +182,11 @@ - * Make su think we're sending the password from a terminal: - */ - -+#ifndef __FreeBSD__ - if (((t_fd = OPEN_TTY()) < 0) || (grantpt(t_fd) < 0) || (unlockpt(t_fd) < 0)) { -+#else -+ if ((t_fd = OPEN_TTY()) < 0) { -+#endif - fprintf (stderr, "Unable to open a terminal\n"); - ABORT (root); - } -@@ -259,7 +264,11 @@ - } - } - -+#ifndef __FreeBSD__ - if(((pts = ptsname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) { -+#else -+ if (((pts = ttyname(t_fd)) == NULL) || ((t_fd = open(pts, O_RDWR | O_NOCTTY)) < 0)) { -+#endif - perror ("Unable to open pseudo slave terminal"); - _exit (-1); - } |