PCMan / gtk3-nocsd

A hack to disable gtk+ 3 client side decoration
GNU Lesser General Public License v2.1
320 stars 41 forks source link

Cannot build on FreeBSD #51

Open Peter2121 opened 4 years ago

Peter2121 commented 4 years ago

Trying to build on FreeBSD I got the following errors:

gtk3-nocsd.c:392:5: warning: implicit declaration of function 'ElfW' is invalid in C99 [-Wimplicit-function-declaration]
    ElfW(Half) n;
    ^
gtk3-nocsd.c:392:10: error: use of undeclared identifier 'Half'
    ElfW(Half) n;
         ^
gtk3-nocsd.c:395:14: error: use of undeclared identifier 'n'
        for (n = 0; n < info->dlpi_phnum; n++) {
             ^
gtk3-nocsd.c:395:21: error: use of undeclared identifier 'n'
        for (n = 0; n < info->dlpi_phnum; n++) {
                    ^
gtk3-nocsd.c:395:43: error: use of undeclared identifier 'n'
        for (n = 0; n < info->dlpi_phnum; n++) {
                                          ^
gtk3-nocsd.c:396:78: error: use of undeclared identifier 'n'
            uintptr_t start = (uintptr_t) (info->dlpi_addr + info->dlpi_phdr[n].p_vaddr);
                                                                             ^
gtk3-nocsd.c:397:67: error: use of undeclared identifier 'n'
            uintptr_t end   = start + (uintptr_t) info->dlpi_phdr[n].p_memsz;
                                                                  ^
1 warning and 6 errors generated.
gmake: *** [Makefile:25: gtk3-nocsd.o] Error 1