From b53728d3b32f124e571d59b4f058e5fec472845a Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Wed, 11 Sep 2019 17:30:55 -0600 Subject: [PATCH] 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/ --- cde/programs/dtksh/ksh93/src/lib/libast/string/fmtdev.c | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- 2.25.1