Skip to content

Commit

Permalink
doh: make sure it is found! (find returns -1 when not found... which …
Browse files Browse the repository at this point in the history
…evaluates to true)

git-svn-id: https://xpra.org/svn/Xpra/trunk@12935 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jun 28, 2016
1 parent d975b4e commit 12fdd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2419,7 +2419,7 @@ def osx_pkgconfig(*pkgs_options, **ekw):
ENABLE_DEVICE_CAPS = False
if os.path.exists("/usr/include/linux/videodev2.h"):
hdata = open("/usr/include/linux/videodev2.h").read()
ENABLE_DEVICE_CAPS = hdata.find("device_caps")
ENABLE_DEVICE_CAPS = hdata.find("device_caps")>=0
kwargs = {"ENABLE_DEVICE_CAPS" : ENABLE_DEVICE_CAPS}
make_constants("xpra", "codecs", "v4l2", "constants", **kwargs)
cython_add(Extension("xpra.codecs.v4l2.pusher",
Expand Down

0 comments on commit 12fdd01

Please sign in to comment.