projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d59ec19
)
ksh/libast: include sys/sysmacros.h in fmtdev.c for linux systems
author
Jon Trulson
<jon@radscan.com>
Wed, 11 Sep 2019 23:30:55 +0000
(17:30 -0600)
committer
Jon 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
patch
|
blob
|
history
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 b723e9d4c0fa7d68ef9b6418af2c0c5d616e650d..b3d862e520c37a794bce34684839df1580bf1b6d 100644
(file)
--- 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 <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));