From: "Alexey I. Froloff" <raorn@altlinux.ru> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] xconsole-1.0.3-alt2: i586 rebuild failed Date: Sat, 8 Nov 2008 15:38:24 +0300 Message-ID: <20081108123824.GJ27961@altlinux.org> (raw) In-Reply-To: <20081108114726.GF20311@wo.int.altlinux.org> [-- Attachment #1.1: Type: text/plain, Size: 374 bytes --] * Dmitry V. Levin <ldv@> [081108 14:48]: > Если есть configure, то проверить наличие sys/stropts.h и выключать код по > HAVE_SYS_STROPTS_H > Если нет configure, то выключать код по > #ifndef __linux__ Родил нечто (в аттаче, может кому пригодится). Я правильно понимаю, что ioctl(fd, I_PUSH, "foobar"); у нас всё равно ничего не делали? -- Regards, Sir Raorn. [-- Attachment #1.2: aterm-STREAMS.patch --] [-- Type: text/plain, Size: 1345 bytes --] diff --git a/aterm/autoconf/configure.in b/aterm/autoconf/configure.in index a798111..5290532 100644 --- a/aterm/autoconf/configure.in +++ b/aterm/autoconf/configure.in @@ -418,6 +418,7 @@ AC_CHECK_HEADERS( \ sys/ioctl.h \ sys/select.h \ sys/sockio.h \ + sys/stropts.h \ sys/time.h \ ) diff --git a/aterm/src/command.c b/aterm/src/command.c index 70b3cbe..cc9b3a7 100644 --- a/aterm/src/command.c +++ b/aterm/src/command.c @@ -97,7 +97,9 @@ static const char rcsid[] = "$Id: command.c,v 1.24 2006/06/26 18:01:20 sasha Exp #if defined (__svr4__) || defined (__lnx21__) # include <sys/resource.h> /* for struct rlimit */ -# include <sys/stropts.h> /* for I_PUSH */ +# ifdef HAVE_SYS_STROPTS_H +# include <sys/stropts.h> /* for I_PUSH */ +# endif # define _NEW_TTY_CTRL /* to get proper defines in <termios.h> */ #endif @@ -683,6 +685,7 @@ get_tty(void) exit(EXIT_FAILURE); } #if defined (__svr4__) || defined (__lnx21__) +# ifdef HAVE_SYS_STROPTS_H /* * Push STREAMS modules: * ptem: pseudo-terminal hardware emulation module. @@ -692,6 +695,7 @@ get_tty(void) ioctl(fd, I_PUSH, "ptem"); ioctl(fd, I_PUSH, "ldterm"); ioctl(fd, I_PUSH, "ttcompat"); +# endif #else /* __svr4__ */ { /* change ownership of tty to real uid and real group */ [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-11-08 12:38 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-10-26 11:01 ` Valery V. Inozemtsev 2008-10-26 17:53 ` Dmitry V. Levin 2008-10-27 22:39 ` Dmitry V. Levin 2008-10-28 7:54 ` Valery V. Inozemtsev 2008-10-28 10:06 ` Dmitry V. Levin 2008-10-28 10:58 ` Valery V. Inozemtsev 2008-11-08 11:36 ` Alexey I. Froloff 2008-11-08 11:47 ` Dmitry V. Levin 2008-11-08 12:38 ` Alexey I. Froloff [this message] 2008-11-08 12:46 ` Dmitry V. Levin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20081108123824.GJ27961@altlinux.org \ --to=raorn@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git