pidof was including readproc.h only because one length was used
and it didn't include some system headers.
*/
#include <stdio.h>
+#include <unistd.h>
#include <getopt.h>
+#include <sys/types.h>
#include "c.h"
#include "fileutils.h"
#include "nls.h"
#include "xalloc.h"
-#include "proc/readproc.h"
+//#include "proc/readproc.h"
#include <proc/pids.h>
#include "proc/version.h" /* procps_version */
static char *pid_link (pid_t pid, const char *base_name)
{
- char link [PROCPATHLEN];
+ char link [1000];
char *result;
int path_alloc_size;
int len;