]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - login-utils/ttymsg.c
Imported from util-linux-2.10s tarball.
[thirdparty/util-linux.git] / login-utils / ttymsg.c
index 6bf2f82f6830767fbf4fbba098f1e96fbd205c8a..b422abb859089e01c34f81fe7408dfb327c1d767 100644 (file)
@@ -53,9 +53,8 @@
 #include <stdlib.h>
 #include "nls.h"
 
-#ifdef __linux__
 #include "pathnames.h"
-#endif
+#include "ttymsg.h"
 
 /*
  * Display the contents of a uio structure on a terminal.  Used by wall(1),
  * ignored (exclusive-use, lack of permission, etc.).
  */
 char *
-ttymsg(iov, iovcnt, line, tmout)
-       struct iovec *iov;
-       int iovcnt;
-       char *line;
-       int tmout;
-{
+ttymsg(struct iovec *iov, int iovcnt, char *line, int tmout) {
        static char device[MAXNAMLEN];
        static char errbuf[MAXNAMLEN+1024];
        register int cnt, fd, left, wret;