Browse Source

fix: make pid_t type 'int'

macos gcc compiler says pid_t should be int, not 'long int'
greatbridf 2 years ago
parent
commit
7438992327
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gblibc/include/sys/types.h

+ 1 - 1
gblibc/include/sys/types.h

@@ -7,7 +7,7 @@
 extern "C" {
 #endif
 
-typedef ssize_t pid_t;
+typedef int pid_t;
 
 #ifdef __cplusplus
 }