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:
parent
d59ec197e5
commit
b53728d3b3
|
@ -94,6 +94,10 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <ls.h>
|
#include <ls.h>
|
||||||
|
|
||||||
|
#if defined(__linux__)
|
||||||
|
#include <sys/sysmacros.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
char*
|
char*
|
||||||
fmtdev __PARAM__((struct stat* st), (st)) __OTORP__(struct stat* st;){
|
fmtdev __PARAM__((struct stat* st), (st)) __OTORP__(struct stat* st;){
|
||||||
unsigned int ma = major(idevice(st));
|
unsigned int ma = major(idevice(st));
|
||||||
|
|
Loading…
Reference in New Issue