• Dmitry Safonov's avatar
    arm/test: fix _XOPEN_SOURCE define · 0ca79b6d
    Dmitry Safonov authored
    It looks like, on arm32 in <features.h>:
      #ifdef  _XOPEN_SOURCE
      # define __USE_XOPEN    1
      # if (_XOPEN_SOURCE - 0) >= 500
      #  define __USE_XOPEN_EXTENDED  1
      /* ... */
    
    And ptsname(), unlockpt(), grantpt() are under:
      #ifdef __USE_XOPEN_EXTENDED
      extern int grantpt (int __fd) __THROW;
      extern int unlockpt (int __fd) __THROW;
      extern char *ptsname (int __fd) __THROW __wur;
      #endif
      /* ... */
    
    Fixes:
    pty00.c:50:2: error: implicit declaration of function 'grantpt' [-Werror=implicit-function-declaration]
      grantpt(fdm);
      ^~~~~~~
    pty00.c:51:2: error: implicit declaration of function 'unlockpt' [-Werror=implicit-function-declaration]
      unlockpt(fdm);
      ^~~~~~~~
    pty00.c:52:14: error: implicit declaration of function 'ptsname' [-Werror=implicit-function-declaration]
      slavename = ptsname(fdm);
                  ^~~~~~~
    pty00.c:52:12: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
      slavename = ptsname(fdm);
                ^
    Signed-off-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    0ca79b6d
Name
Last commit
Last update
..
inhfd Loading commit data...
jenkins Loading commit data...
others Loading commit data...
zdtm Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
abrt.sh Loading commit data...
check_actions.py Loading commit data...
crit-recode.py Loading commit data...
criu.py Loading commit data...
groups.desc Loading commit data...
inhfd.desc Loading commit data...
rpc.py Loading commit data...
show_action.sh Loading commit data...
zdtm.desc Loading commit data...
zdtm.py Loading commit data...
zdtm_ct.c Loading commit data...
zdtm_mount_cgroups Loading commit data...