emacsclient: take more care with int width

* lib-src/emacsclient.c: Include inttypes.h, stddef.h.
(emacs_pid, main): Don’t assume pid fits in int.
(fail): Don’t assume pointer difference fits in int.
(set_local_socket): Don’t assume uid fits in long.
1 job for master in 21 minutes and 15 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test
failed #116
test

00:21:15

 
Name Stage Failure
failed
test Test
make[2]: *** [check-doit] Error 1
Makefile:301: recipe for target 'check-doit' failed
make[2]: Leaving directory '/builds/tzz/emacs/test'
Makefile:271: recipe for target 'check' failed
make[1]: *** [check] Error 2
make[1]: Leaving directory '/builds/tzz/emacs/test'
make: *** [check] Error 2
Makefile:955: recipe for target 'check' failed
ERROR: Job failed: exit code 1