From: Jon Trulson Date: Wed, 11 Sep 2019 23:30:55 +0000 (-0600) Subject: ksh/libast: include sys/sysmacros.h in fmtdev.c for linux systems X-Git-Tag: 2.3.0a~11 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b53728d3b32f124e571d59b4f058e5fec472845a;p=oweals%2Fcde.git ksh/libast: include sys/sysmacros.h in fmtdev.c for linux systems Fix scraped from CDE forum post: https://sourceforge.net/p/cdesktopenv/discussion/general/thread/24d7511a39/ --- diff --git a/cde/programs/dtksh/ksh93/src/lib/libast/string/fmtdev.c b/cde/programs/dtksh/ksh93/src/lib/libast/string/fmtdev.c index b723e9d4..b3d862e5 100644 --- a/cde/programs/dtksh/ksh93/src/lib/libast/string/fmtdev.c +++ b/cde/programs/dtksh/ksh93/src/lib/libast/string/fmtdev.c @@ -94,6 +94,10 @@ #include #include +#if defined(__linux__) +#include +#endif + char* fmtdev __PARAM__((struct stat* st), (st)) __OTORP__(struct stat* st;){ unsigned int ma = major(idevice(st));