File: cflags.sh

package info (click to toggle)
xdotool 1%3A3.20160805.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 832 kB
  • sloc: ansic: 5,587; ruby: 1,062; sh: 316; makefile: 263
file content (10 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

osxver=`sw_vers -productVersion 2> /dev/null`
if [ $? -eq 0 ] ; then
  minor=`echo "$osxver" | cut -d. -f2`
  if [ "$minor" -le 11 ] ; then
    # Versions of OSX before 10.12 (aka "macOS Sierra") did not have clock_gettime()
    echo "-DMISSING_CLOCK_GETTIME"
  fi
fi