Almamu / linux-wallpaperengine

Wallpaper Engine backgrounds for Linux!
GNU General Public License v3.0
1.59k stars 61 forks source link

getpid() was not declared in this scope during compiliation #155

Closed digitaltapestryposters closed 1 year ago

digitaltapestryposters commented 1 year ago

Hi I am attempting to compile linux-wallpaper engine on Debian and I get the following error: src/WallpaperEngine/Audio/Drivers/Detectors/CPulseAudioPlayingDetector.cpp:19:29: error: ‘getpid’ was not declared in this scope; did you mean ‘getpt’? 19 | if (atoi (value) != getpid () && pa_cvolume_avg (&info->volume) != PA_VOLUME_MUTED) | ^~~~~~ during compilation. I have a work around where I add #include <unistd.h> to the top of the file but idk if this the correct solution.

Just thought I would let you know

Almamu commented 1 year ago

Yes, that should be the right solution. I'll make a commit with your fix. Weirdly didn't come up on the Ubuntu builds 😅