File: type_struct_sockaddr_l2.m4

package info (click to toggle)
nc6 1.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,108 kB
  • ctags: 1,581
  • sloc: ansic: 12,966; sh: 6,695; makefile: 541; yacc: 288; sed: 16
file content (19 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
AC_DEFUN([TYPE_STRUCT_SOCKADDR_L2],[
  ds6_have_sockaddr_l2=
  AC_CHECK_TYPES([struct sockaddr_l2],[
    ds6_have_sockaddr_l2=yes
  ],[
    ds6_have_sockaddr_l2=no
  ],[
#include <sys/types.h>
#include <sys/socket.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/l2cap.h>
  ])

  if test "X$ds6_have_sockaddr_l2" = "Xyes"; then :
    $1
  else :
    $2
  fi
])