summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright notice0.14Mike Gilbert2020-11-191-1/+1
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* Only include sysmacros.h on linuxJacob Floyd2020-11-191-0/+2
| | | | | | | | | sysmacros.h is only needed for major() which is only used within an `#if defined(__linux__)` block. So, this header is only needed on linux. Bug: https://bugs.gentoo.org/751511 Signed-off-by: Jacob Floyd <cognifloyd@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* consoletype: drop headers.hMike Gilbert2019-08-231-1/+0
| | | | | | | The macro checks in this header file are not particularly useful, and probably don't make the project more portable in any meaningful way. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* consoletype.c: update header to <sys/sysmacros.h>Anthony G. Basile2019-08-231-1/+1
| | | | | | | | | | This is an update to commit 53b60b4. Recent changes in musl have removed the inclusion of <sys/sysmacros.h> from <sys/types.h>. Now the macros major()/minor() require the inclusion of the former header. This change does not affect glibc nor earlier versions of musl, but is required for musl 1.1.23 and later. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Make consoletype more portable0.9William Hubbs2015-02-281-13/+58
| | | | | This is based on the code indicated in issue #3; the original version did not run on Solaris.
* consoletype: implement the stdout command line optionWilliam Hubbs2014-09-121-3/+6
|
* consoletype.c: add missing include <sys/types.h>gentoo-functions-0.6Anthony G. Basile2014-05-231-0/+1
| | | | | | major() requires <sys/types.h> according to man 3 makedev. This bug shows up on a musl system, but not glibc or uclibc because of a difference in the way the headers stack.
* initial commitWilliam Hubbs2014-05-061-0/+37
This includes the gentoo-functions.sh from earlier versions as well as consoletype which should have been ported from baselayout-1 as well.