diff options
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 48eebb594f7..c7d7eefc2ab 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -3269,7 +3269,7 @@ system_process_attributes (Lisp_Object pid) char *cmdline = NULL; ptrdiff_t cmdline_size; char c; - printmax_t proc_id; + intmax_t proc_id; int ppid, pgrp, sess, tty, tpgid, thcount; uid_t uid; gid_t gid; @@ -3284,7 +3284,7 @@ system_process_attributes (Lisp_Object pid) CHECK_NUMBER (pid); CONS_TO_INTEGER (pid, pid_t, proc_id); - sprintf (procfn, "/proc/%"pMd, proc_id); + sprintf (procfn, "/proc/%"PRIdMAX, proc_id); if (stat (procfn, &st) < 0) return attrs; @@ -3505,7 +3505,7 @@ system_process_attributes (Lisp_Object pid) struct psinfo pinfo; int fd; ssize_t nread; - printmax_t proc_id; + intmax_t proc_id; uid_t uid; gid_t gid; Lisp_Object attrs = Qnil; @@ -3514,7 +3514,7 @@ system_process_attributes (Lisp_Object pid) CHECK_NUMBER (pid); CONS_TO_INTEGER (pid, pid_t, proc_id); - sprintf (procfn, "/proc/%"pMd, proc_id); + sprintf (procfn, "/proc/%"PRIdMAX, proc_id); if (stat (procfn, &st) < 0) return attrs; |