twosigma / postgresql-contrib

12 stars 3 forks source link

pqasyncnotifier doesn't work on raspberry pi3 #3

Open danstr179 opened 7 years ago

danstr179 commented 7 years ago

pqasyncnotifier doesn't work on raspberry pi3. I have tried compiling it like this(after commenting out the include of twosigma.h): gcc -O2 -I /usr/include/postgresql -lpq pqasyncnotifier.c -o pqasyncnotifier but when running the executable it only produces the 'usage' output regardless of options and arguments supplied. To get it working I had to cast the '-1' in the getopt_long while loop to char.

nicowilliams commented 7 years ago

Oh, that probably requires defining _GNU_SOURCE. I've pushed a fix. Can you try it?