Pangolin icon indicating copy to clipboard operation
Pangolin copied to clipboard

Build fails: error: use of undeclared identifier 'S_IRUSR'

Open yurivict opened this issue 2 years ago • 1 comments

/disk-samsung/freebsd-ports/x11-toolkits/pangolin/work/Pangolin-0.8/components/pango_core/src/threadedfilebuf.cpp:102:19: error: use of undeclared identifier 'S_IRUSR'
    mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH;
                  ^
/disk-samsung/freebsd-ports/x11-toolkits/pangolin/work/Pangolin-0.8/components/pango_core/src/threadedfilebuf.cpp:102:29: error: use of undeclared identifier 'S_IWUSR'
    mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH;
                            ^
/disk-samsung/freebsd-ports/x11-toolkits/pangolin/work/Pangolin-0.8/components/pango_core/src/threadedfilebuf.cpp:102:39: error: use of undeclared identifier 'S_IRGRP'
    mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH;
                                      ^
/disk-samsung/freebsd-ports/x11-toolkits/pangolin/work/Pangolin-0.8/components/pango_core/src/threadedfilebuf.cpp:102:49: error: use of undeclared identifier 'S_IWGRP'
    mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH;
                                                ^
/disk-samsung/freebsd-ports/x11-toolkits/pangolin/work/Pangolin-0.8/components/pango_core/src/threadedfilebuf.cpp:102:59: error: use of undeclared identifier 'S_IROTH'
    mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH;
                                                          ^
5 errors generated.

#include <sys/stat.h> is forgotten.

Version: 0.8 FreeBSD 13

yurivict avatar May 03 '22 23:05 yurivict

Thanks! I'll try to add this next time I remember or you could raise a pull request.

best

stevenlovegrove avatar May 19 '22 22:05 stevenlovegrove