From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Date: Thu, 4 Dec 2014 20:56:17 +0100 From: Felix Janda To: kbd@lists.altlinux.org Message-ID: <20141204195617.GA5691@euler> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.22 (2013-10-16) X-Mailman-Approved-At: Thu, 04 Dec 2014 23:34:37 +0400 Subject: [kbd] [PATCH 0/4] Some fixes for compilation with musl X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2014 19:57:01 -0000 Archived-At: List-Archive: Patch 2-4 add missing headers and fix the compilation with musl libc of the respective files. Patch 1 is an unrelated encoding fix. With these patches, kbd still does not compile with musl because musl does not provide the non-standard error.h and error(). Would it be ok to replace all invocations with similar invocations of perror() and fprintf()? For example in main() of kbdinfo.c, change if (ioctl(fd, KDGETMODE, &mode) == -1) error(EXIT_FAILURE, errno, "ioctl"); to if (ioctl(fd, KDGETMODE, &mode) == -1) { perror("ioctl"); return EXIT_FAILURE; } This changes the output slightly since error() also prints the program name. Since however a mixture of error(), perror() and fprintf() is used in the source anyway, the change would increase the consistency of the output. Felix Janda (4): src/kbdrate: iconv from iso-8859-2 to utf8 libkeymap: include for u_short kbdrate.c, openvt.c: include for open() openvt.c: include for NAME_MAX src/kbdrate.c | 3 ++- src/libkeymap/dump.c | 1 + src/libkeymap/kmap.c | 1 + src/libkeymap/summary.c | 1 + src/openvt.c | 2 ++ 5 files changed, 7 insertions(+), 1 deletion(-) -- 2.0.4