1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

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/
This commit is contained in:
Jon Trulson 2019-09-11 17:30:55 -06:00
parent d59ec197e5
commit b53728d3b3

View file

@ -94,6 +94,10 @@
#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));