ksh/libast: include sys/sysmacros.h in fmtdev.c for linux systems
authorJon Trulson <jon@radscan.com>
Wed, 11 Sep 2019 23:30:55 +0000 (17:30 -0600)
committerJon Trulson <jon@radscan.com>
Wed, 11 Sep 2019 23:39:30 +0000 (17:39 -0600)
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

index b723e9d4c0fa7d68ef9b6418af2c0c5d616e650d..b3d862e520c37a794bce34684839df1580bf1b6d 100644 (file)
 #include <ctype.h>
 #include <ls.h>
 
+#if defined(__linux__)
+#include <sys/sysmacros.h>
+#endif
+
 char*
 fmtdev __PARAM__((struct stat* st), (st)) __OTORP__(struct stat* st;){
        unsigned int    ma = major(idevice(st));