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:
parent
d59ec197e5
commit
b53728d3b3
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue